/* Custom styles for Synchrotask theme */
:root {
    --synchrotask-blue: #2563eb;
    --synchrotask-dark-blue: #1a365d;
    --synchrotask-light-blue: #e0f2fe;
    --synchrotask-gray: #4a5568;
    --synchrotask-light-gray: #f8fafc;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

    /* Hide footer on login/register pages */
    body.login-page footer,
    body.register-page footer {
        display: none !important;
    }

/* Header/Navbar styling */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--synchrotask-dark-blue) !important;
}
    .navbar-brand img {
        display: block;
        height: 40px;
        width: auto;
    }

.navbar-nav .nav-link {
    color: var(--synchrotask-gray) !important;
    font-weight: 500;
    padding: 8px 20px !important;
    transition: color 0.3s;
}

    .navbar-nav .nav-link:hover {
        color: var(--synchrotask-blue) !important;
    }

.navbar-toggler {
    border: none;
    padding: 0;
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2837, 99, 235, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Button styling */
.btn-synchrotask {
    background-color: var(--synchrotask-blue);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn-synchrotask:hover {
        background-color: #1d4ed8;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
        color: white;
    }

.btn-synchrotask-outline {
    background-color: transparent;
    color: var(--synchrotask-blue);
    border: 2px solid var(--synchrotask-blue);
    padding: 8px 22px;
}

    .btn-synchrotask-outline:hover {
        background-color: var(--synchrotask-blue);
        color: white;
    }

/* Main content area */
.container-fluid {
    width: 95%;
}

/* Main content should take remaining space */
main {
    flex: 1 0 auto;
    width: 100%;
    padding-top: 33px; /* Account for fixed navbar */
}

/* Login/Register page specific */
body.login-page main,
body.register-page main {
    padding-top: 0;
}

/* Footer styling */
footer {
    background-color: var(--synchrotask-dark-blue) !important;
    color: white !important;
    padding: 40px 0 20px !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    flex-shrink: 0;
    width: 100%;
}

.footer-links a {
    color: #cbd5e0 !important;
    text-decoration: none;
    margin-right: 20px;
    transition: color 0.3s;
}

    .footer-links a:hover {
        color: white !important;
    }

.footer-copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Login partial adjustments */
.login-partial .nav-link {
    padding: 8px 15px !important;
}

/* Utility classes */
.text-synchrotask-blue {
    color: var(--synchrotask-blue) !important;
}

.text-synchrotask-dark {
    color: var(--synchrotask-dark-blue) !important;
}

.bg-synchrotask-light {
    background-color: var(--synchrotask-light-gray) !important;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: white;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
    }

    .navbar-nav .nav-link {
        padding: 10px 0 !important;
    }

    main {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    .navbar-brand-logo {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}
