/* Enhanced Professional Login Design */
body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    display: flex;
    min-height: 500px;
}

.login-left {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 40px;
    color: white;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" fill-opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" fill-opacity="0.1"/><circle cx="25" cy="75" r="1" fill="white" fill-opacity="0.05"/><circle cx="75" cy="25" r="1" fill="white" fill-opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.login-right {
    padding: 60px 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-logo {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.welcome-text {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.welcome-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    opacity: 0.9;
}

.feature-list li i {
    margin-right: 0.75rem;
    width: 20px;
}

.login-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #718096;
    font-size: 0.95rem;
}

.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating > .form-control {
    height: 3.5rem;
    padding: 1rem 0.75rem 0.25rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-floating > .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.form-floating > label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 1rem 0.75rem;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: all 0.3s ease;
    color: #718096;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.input-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    z-index: 5;
}

.btn-login {
    height: 3.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #5a67d8;
}

.alert-custom {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    background: #f0fff4;
    border-left: 4px solid #48bb78;
    color: #2f855a;
}

.invalid-feedback {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding-left: 0.75rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        margin: 10px;
        border-radius: 16px;
    }
    
    .login-left {
        padding: 40px 30px 30px 30px;
        text-align: center;
    }
    
    .login-right {
        padding: 30px;
    }
    
    .welcome-text {
        font-size: 1.8rem;
    }
    
    .feature-list {
        display: none;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 10px;
    }
    
    .login-left {
        padding: 30px 20px 20px 20px;
    }
    
    .login-right {
        padding: 20px;
    }
}

/* Loading Animation */
.btn-login.loading {
    pointer-events: none;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Professional Dashboard Styles */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f8fafc;
}

/* Enhanced Sidebar Styles */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

/* Custom Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

.sidebar.collapsed {
    width: 80px;
}

/* Sidebar Header */
.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.sidebar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-brand i {
    margin-right: 10px;
    color: #667eea;
}

.sidebar.collapsed .sidebar-brand span {
    display: none;
}

/* Enhanced Navigation */
.sidebar-nav {
    padding: 20px 0;
    width: 100%;
}

/* Ensure proper Bootstrap nav layout */
.sidebar-nav ul.nav.flex-column {
    flex-direction: column !important;
}

.nav-section {
    margin-bottom: 15px;
    position: relative;
}

.nav-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
    border-radius: 6px;
    margin: 0 8px 3px 8px;
    position: relative;
    will-change: background-color, transform;
}

.nav-section-header:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(1px);
}

.nav-section-header.active {
    background: rgba(102, 126, 234, 0.15);
    border-left: 3px solid #667eea;
    padding-left: 17px;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #a0aec0;
    margin: 0;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.nav-section-header:hover .nav-section-title {
    color: #e2e8f0;
}

.nav-section-header.active .nav-section-title {
    color: #ffffff;
}

.dropdown-icon {
    font-size: 0.65rem;
    color: #a0aec0;
    transition: transform 0.2s ease, color 0.15s ease;
    will-change: transform;
}

.nav-section-header:hover .dropdown-icon {
    color: #cbd5e0;
}

.nav-section-header.active .dropdown-icon {
    color: #667eea;
}

.sidebar.collapsed .nav-section-header {
    padding: 10px;
    justify-content: center;
    margin: 0 5px 5px 5px;
}

.sidebar.collapsed .nav-section-title {
    display: none;
}

.sidebar.collapsed .dropdown-icon {
    display: none;
}

/* Tooltip for collapsed sidebar */
.sidebar.collapsed .nav-section-header::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    background: #2d3748;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.sidebar.collapsed .nav-section-header:hover::after {
    opacity: 1;
}

.sidebar.collapsed .nav-link::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 10px;
    background: #2d3748;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.sidebar.collapsed .nav-link:hover::after {
    opacity: 1;
}

/* Simplified Dropdown menu animation */
.nav-section .collapse {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0 0 6px 6px;
    margin: 0 8px;
    padding: 3px 0;
}

.nav-section .collapsing {
    transition: height 0.25s ease-out;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0 0 6px 6px;
    margin: 0 8px;
    overflow: hidden;
}

.nav-item {
    margin-bottom: 3px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 20px 10px 30px;
    color: #cbd5e0;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    border-left: 2px solid transparent;
    position: relative;
    border-radius: 4px;
    margin: 1px 8px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: translateX(2px);
}

.nav-link.active {
    background: rgba(102, 126, 234, 0.25);
    color: white;
    border-left-color: #667eea;
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #667eea;
    border-radius: 50%;
}

.nav-link i {
    width: 18px;
    margin-right: 12px;
    text-align: center;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

.nav-link:hover i {
    color: #667eea;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: 12px;
}

/* Badge for notifications */
.nav-badge {
    background: #e53e3e;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
}

.sidebar.collapsed .nav-badge {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.main-content.expanded {
    margin-left: 80px;
}

/* Top Navigation */
.top-navbar {
    background: white;
    padding: 15px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar-left {
    display: flex;
    align-items: center;
}

.sidebar-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #4a5568;
    margin-right: 20px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: #f7fafc;
    color: #2d3748;
}

.breadcrumb-nav {
    margin: 0;
    background: none;
    padding: 0;
}

.breadcrumb-nav .breadcrumb-item {
    color: #718096;
}

.breadcrumb-nav .breadcrumb-item.active {
    color: #2d3748;
    font-weight: 500;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    color: #4a5568;
    font-size: 1.2rem;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    background: #f7fafc;
    color: #2d3748;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e53e3e;
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 8px;
    min-width: 16px;
    text-align: center;
}

/* Dashboard Content */
.dashboard-content {
    padding: 25px;
}

.page-header {
    margin-bottom: 30px;
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.page-subtitle {
    color: #718096;
    font-size: 1rem;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color, #667eea);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stats-card.primary::before { background: #667eea; }
.stats-card.success::before { background: #48bb78; }
.stats-card.warning::before { background: #ed8936; }
.stats-card.info::before { background: #0bc5ea; }

.stats-header {
    display: flex;
    justify-content: between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-left: auto;
}

.stats-icon.primary { background: linear-gradient(135deg, #667eea, #764ba2); }
.stats-icon.success { background: linear-gradient(135deg, #48bb78, #38a169); }
.stats-icon.warning { background: linear-gradient(135deg, #ed8936, #dd6b20); }
.stats-icon.info { background: linear-gradient(135deg, #0bc5ea, #00b5d8); }

.stats-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2d3748;
    line-height: 1;
    margin-bottom: 5px;
}

.stats-label {
    color: #718096;
    font-size: 0.9rem;
    font-weight: 500;
}

.stats-change {
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 10px;
}

.stats-change.positive {
    color: #48bb78;
}

.stats-change.negative {
    color: #e53e3e;
}

/* Quick Actions */
.quick-actions {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #4a5568;
    transition: all 0.3s ease;
    text-align: center;
}

.action-btn:hover {
    background: white;
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.action-btn i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.action-btn span {
    font-weight: 600;
    margin-bottom: 5px;
}

.action-btn small {
    color: #718096;
    font-size: 0.8rem;
}

/* Recent Activity */
.recent-activity {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f7fafc;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1rem;
    color: white;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 0.8rem;
    color: #718096;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.nav-link, .nav-section-header {
    position: relative;
    overflow: hidden;
}

/* Optimized Height Transitions */
.nav-section .collapse:not(.show) {
    display: none;
}

.nav-section .collapse.show {
    display: block;
}

.nav-section .collapsing {
    display: block;
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.25);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .main-content.expanded {
        margin-left: 0;
    }
    
    .dashboard-content {
        padding: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    /* Mobile sidebar navigation adjustments */
    .nav-section-header {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    
    .nav-link {
        padding: 12px 20px 12px 30px;
        font-size: 0.9rem;
    }
    
    .nav-link i {
        width: 20px;
        margin-right: 15px;
        font-size: 1rem;
    }
    
    /* Ensure dropdowns work well on mobile */
    .nav-section .collapse {
        margin: 0 5px;
        border-radius: 6px;
    }
    
    /* Mobile touch improvements */
    .nav-section-header,
    .nav-link {
        min-height: 44px; /* iOS recommended touch target size */
        display: flex;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .action-grid {
        grid-template-columns: 1fr;
    }
    
    .top-navbar {
        padding: 10px 15px;
    }
    
    .stats-card {
        padding: 20px 15px;
    }
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}
/* Professional Profile Styles */
.profile-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 40px 30px;
    color: white;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.profile-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: rotate(15deg);
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.profile-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.profile-role {
    font-size: 1.1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.profile-stats {
    display: flex;
    gap: 30px;
    margin-top: 25px;
    position: relative;
    z-index: 2;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Profile Tabs */
.profile-tabs {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
}

.nav-tabs {
    border-bottom: none;
    background: #f8fafc;
    padding: 20px 30px 0;
}

.nav-tabs .nav-link {
    background: none;
    border: none;
    color: #718096;
    font-weight: 600;
    padding: 15px 25px;
    border-radius: 10px 10px 0 0;
    margin-right: 5px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.nav-tabs .nav-link.active {
    background: white;
    color: #667eea;
    border-bottom: 3px solid #667eea;
}

.tab-content {
    padding: 30px;
}

/* Profile Form Styles */
.profile-form {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 40px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
}

.section-title i {
    margin-right: 10px;
    color: #667eea;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.form-label i {
    margin-right: 8px;
    color: #718096;
    width: 16px;
}

.form-control {
    height: 50px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.form-control.is-invalid {
    border-color: #e53e3e;
    background: #fef5f5;
}

.invalid-feedback {
    color: #e53e3e;
    font-size: 0.875rem;
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.invalid-feedback i {
    margin-right: 5px;
}

/* Password Strength Indicator */
.password-strength {
    margin-top: 10px;
}

.strength-meter {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak { background: #e53e3e; width: 25%; }
.strength-fair { background: #ed8936; width: 50%; }
.strength-good { background: #38a169; width: 75%; }
.strength-strong { background: #48bb78; width: 100%; }

.strength-text {
    font-size: 0.8rem;
    font-weight: 500;
}

/* Action Buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
    gap: 15px;
}

.btn-save {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-save i {
    margin-right: 8px;
}

.btn-cancel {
    background: none;
    border: 2px solid #e2e8f0;
    color: #718096;
    padding: 10px 25px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel:hover {
    border-color: #cbd5e0;
    color: #4a5568;
}

/* Success Message */
.success-message {
    background: #f0fff4;
    border: 2px solid #9ae6b4;
    color: #2f855a;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    animation: slideDown 0.3s ease;
}

.success-message i {
    margin-right: 10px;
    font-size: 1.2rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Danger Zone */
.danger-zone {
    background: #fef5f5;
    border: 2px solid #fed7d7;
    border-radius: 15px;
    padding: 25px;
    margin-top: 30px;
}

.danger-zone .section-title {
    color: #e53e3e;
    border-bottom-color: #fed7d7;
}

.danger-zone .section-title i {
    color: #e53e3e;
}

.btn-danger {
    background: #e53e3e;
    border: none;
    color: white;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: #c53030;
    transform: translateY(-1px);
}

/* Activity Log */
.activity-log {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: white;
    font-size: 0.9rem;
}

.activity-icon.login { background: #48bb78; }
.activity-icon.update { background: #0bc5ea; }
.activity-icon.security { background: #ed8936; }

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 2px;
}

.activity-time {
    font-size: 0.85rem;
    color: #718096;
}

.activity-meta {
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .profile-header {
        padding: 30px 20px;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
        gap: 20px;
    }
    
    .profile-form {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nav-tabs {
        padding: 15px 20px 0;
    }
    
    .tab-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .profile-header h1 {
        font-size: 1.8rem;
    }
    
    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .profile-stats {
        gap: 15px;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
}
/* Rate Limiting Styles */
.alert-warning {
    background: #fef3cd;
    border: 2px solid #ffd60a;
    color: #664d03;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert-warning i {
    color: #ff8500;
    font-size: 1.2rem;
    margin-right: 10px;
}

.btn-login:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.65;
}

.rate-limit-countdown {
    font-weight: bold;
    color: #dc3545;
}

/* Security indicator */
.security-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.security-indicator.warning {
    background: #ffc107;
    color: #212529;
}

.security-indicator.danger {
    background: #dc3545;
}
/* Enhanced Rate Limiting Styles */
.alert-warning {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffd60a;
    color: #664d03;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2); }
    50% { box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3); }
}

.alert-warning i {
    color: #ff8500;
    font-size: 1.5rem;
    margin-right: 15px;
}

.alert-warning strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1rem;
}

.alert-warning small {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Rate limit countdown timer */
.rate-limit-timer {
    font-weight: bold;
    color: #dc3545;
    font-size: 1.1rem;
}

/* Security badge */
.security-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(40, 167, 69, 0.3);
}

.security-badge.warning {
    background: #ffc107;
    color: #212529;
}

.security-badge.danger {
    background: #dc3545;
}

/* Login button disabled state */
.btn-login:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.65;
    transform: none !important;
}

/* Form focus state when rate limited */
.form-floating > .form-control.rate-limited {
    border-color: #ffc107;
    background: #fffbf0;
}

.form-floating > .form-control.rate-limited:focus {
    border-color: #ff8500;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.25);
}
/* Transport Table Validation Styles */
.transport-row .is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.transport-row .is-valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.transport-row input:focus, .transport-row select:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
}

.empty-row {
    opacity: 0.6;
    background-color: #f8f9fa;
}

.has-data {
    background-color: #ffffff;
}
/* Enhanced Delete Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid #f1f5f9;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 2px solid #f1f5f9;
    border-radius: 0 0 15px 15px;
}

.modal-title.text-danger {
    color: #dc3545 !important;
}

.alert-warning {
    background: linear-gradient(45deg, #fff3cd, #ffeaa7);
    border: 2px solid #ffc107;
    border-radius: 10px;
    margin-bottom: 20px;
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #bd2130);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.btn-secondary {
    background: #6c757d;
    border: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

/* Delete button hover effect in table */
.btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Success message animation */
.alert-success {
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Individual Transport Print Styles */
.transport-print-template {
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

.transport-print-template .table {
    border-collapse: collapse;
    width: 100%;
}

.transport-print-template .table td,
.transport-print-template .table th {
    border: 1px solid #000;
    padding: 8px;
    text-align: left;
}

.transport-print-template .print-header {
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.transport-print-template .signature-box {
    margin-top: 30px;
}

.transport-print-template .print-footer {
    border-top: 1px solid #ccc;
    padding-top: 15px;
    margin-top: 30px;
}

/* Button styles for transport actions */
.btn-group-sm .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
}

/* No print elements */
@media print {
    .no-print {
        display: none !important;
    }
    
    .transport-print-template {
        display: block !important;
    }
}

/* Transport action buttons hover effects */
.btn-group .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Individual transport row highlighting */
tr:hover {
    background-color: #f8f9fa;
}

.transport-actions {
    transition: all 0.3s ease;
}
.bg-primary {
  --bs-bg-opacity: 1;
  background-color: rgb(54, 82, 123) !important;
}
.bg-warning {
  --bs-bg-opacity: 1;
  background-color: rgb(96, 96, 96) !important;
}

.btn-primary{
background-color: #555555c7 !important;  
border-color: #b5b5b5 !important;
}
.bg-info {
  background-color: rgb(0, 97, 117) !important;
}
.btn-secondary{
    background-color: #17ac3ecc !important;
}
.bg-primary{
color: white !important;
}

