/* Main Application Layout Styles */

/* Base Styles */
body {
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #212529;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar Styles */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 700;
    color: #1a233b !important;
    font-size: 1.4rem;
    letter-spacing: 0.2px;
}

.navbar-toggler {
    border: none;
    padding: 0.4rem 0.75rem;
    outline: none !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 1.2em;
    height: 1.2em;
}

.navbar-light .navbar-nav .nav-link {
    color: #4a5568;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #1a233b;
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .show > .nav-link {
    color: #1a233b;
}

.dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 10rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #1a233b;
    background-color: #f8f9fa;
}

/* Main Content Area */
main.py-4 {
    flex: 1;
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Container width adjustments */
.container {
    max-width: 1200px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    main.py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Button Styles */
.btn {
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #1a233b 0%, #2d3854 100%);
    border: none;
    color: #c5c5c8;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2d3854 0%, #1a233b 100%);
    box-shadow: 0 5px 15px rgba(26, 35, 59, 0.3);
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    background: linear-gradient(135deg, #1a233b 0%, #2d3854 100%);
    color: #c5c5c8;
    padding: 1.5rem;
    border-bottom: none;
    font-weight: 700;
}

.card-body {
    padding: 1.5rem;
}

/* Form Styles */
.form-control {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    height: auto;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-control:focus {
    border-color: #1a233b;
    box-shadow: 0 0 0 3px rgba(26, 35, 59, 0.1);
    background-color: #ffffff;
}

.form-label {
    font-weight: 600;
    color: #1a233b;
    margin-bottom: 0.5rem;
}

.invalid-feedback {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Auth Links */
.navbar-nav .nav-item .nav-link {
    position: relative;
    margin: 0 5px;
}

.navbar-nav .nav-item .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 50%;
    background-color: #1a233b;
    transition: all 0.2s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-item .nav-link:hover::after {
    width: 100%;
}

/* Utility Classes */
.shadow-sm {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1) !important;
}

.bg-white {
    background-color: #ffffff !important;
}

/* Integration with login page styles */
.login-container {
    min-height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #1a233b 0%, #2d3854 100%);
    color: #c5c5c8;
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.login-header h2 {
    margin: 0;
    font-family: 'Poppins', serif;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: 0.5px;
}

.login-subtitle {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.login-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1a233b;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #1a233b;
    opacity: 0.7;
}

.form-input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.form-input:focus {
    outline: none;
    border-color: #1a233b;
    box-shadow: 0 0 0 3px rgba(26, 35, 59, 0.1);
    background-color: #ffffff;
}

.form-input.is-invalid {
    border-color: #e53e3e;
}

.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.remember-me {
    display: flex;
    align-items: center;
}

.custom-checkbox {
    display: flex;
    align-items: center;
}

.custom-checkbox-input {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1a233b;
}

.custom-checkbox-label {
    font-size: 0.9rem;
    cursor: pointer;
    user-select: none;
    color: #4a5568;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #1a233b;
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    opacity: 1;
}

.form-actions {
    margin-top: 25px;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #1a233b 0%, #2d3854 100%);
    color: #c5c5c8;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    box-shadow: 0 5px 15px rgba(26, 35, 59, 0.3);
    transform: translateY(-2px);
}

.forgot-password {
    text-align: center;
    margin-top: 20px;
}

.forgot-link {
    color: #1a233b;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    text-decoration: underline;
}

.signup-link {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.signup-link span {
    color: #4a5568;
}

.signup-link a {
    color: #1a233b;
    font-weight: 600;
    margin-left: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .login-card {
        border-radius: 10px;
    }
    
    .login-header {
        padding: 25px 20px;
    }
    
    .login-header h2 {
        font-size: 1.5rem;
    }
    
    .login-body {
        padding: 25px 20px;
    }
    
    .form-input {
        padding: 10px 15px 10px 40px;
        font-size: 0.95rem;
    }
    
    .btn-login {
        padding: 12px;
    }
}