/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    min-height: 100vh;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .company-name,
.sidebar.collapsed .user-details {
    display: none;
}

.sidebar.collapsed .sidebar-nav {
    overflow-y: auto;
    overflow-x: hidden;
}

/* Sidebar Header */
.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.company-name {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #22c55e;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(34, 197, 94, 0.1);
    transform: scale(1.1);
}

/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 197, 94, 0.3) transparent;
}

/* Custom scrollbar for Webkit browsers */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(34, 197, 94, 0.3);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 197, 94, 0.5);
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0 2rem 2rem 0;
    margin-right: 1rem;
}

.nav-link:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    transform: translateX(5px);
}

.nav-link.active {
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.nav-link i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.nav-text {
    font-weight: 500;
    font-size: 0.95rem;
}

/* New tag styling */
.new-tag {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

/* Coming Soon tag styling */
.coming-soon-tag {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.4rem;
    border-radius: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: auto;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    animation: gentle-pulse 3s ease-in-out infinite;
}

/* Sidebar section styling */
.sidebar-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-section .section-title {
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 1.5rem 0.75rem 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-section .nav-list {
    margin-top: 0.5rem;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
}

@keyframes gentle-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    }
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.user-profile-dropdown {
    position: relative;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.user-info:hover {
    background: rgba(34, 197, 94, 0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 0.8rem;
    color: #718096;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown-toggle {
    background: none;
    border: none;
    color: #718096;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.profile-dropdown-toggle:hover {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.profile-dropdown-toggle.active {
    color: #22c55e;
    transform: rotate(180deg);
}

.profile-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    min-width: 200px;
    width: 100%;
}

/* When sidebar is collapsed, adjust dropdown positioning */
.sidebar.collapsed .profile-dropdown-menu {
    left: 0;
    right: auto;
    width: 250px;
    min-width: 250px;
}

/* Ensure dropdown is always visible and properly positioned */
.sidebar .user-profile-dropdown {
    position: relative;
    z-index: 1001;
}

.profile-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #4a5568;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.profile-dropdown-menu .dropdown-item:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.profile-dropdown-menu .dropdown-item i {
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.profile-dropdown-menu .dropdown-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0.5rem 0;
}

/* Logout button specific styling */
.profile-dropdown-menu .dropdown-item#logoutBtn {
    color: #e53e3e;
}

.profile-dropdown-menu .dropdown-item#logoutBtn:hover {
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
}

/* Custom Logout Confirmation Modal */
.logout-confirmation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.logout-confirmation-modal.show {
    opacity: 1;
    visibility: visible;
}

.logout-confirmation-content {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.logout-confirmation-modal.show .logout-confirmation-content {
    transform: scale(1);
}

.logout-confirmation-icon {
    width: 80px;
    height: 80px;
    background: rgba(229, 62, 62, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #e53e3e;
    font-size: 2rem;
}

.logout-confirmation-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
}

.logout-confirmation-message {
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.logout-confirmation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.logout-confirmation-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 0.9rem;
}

.logout-confirmation-btn.cancel {
    background: #e2e8f0;
    color: #4a5568;
}

.logout-confirmation-btn.cancel:hover {
    background: #cbd5e0;
}

.logout-confirmation-btn.confirm {
    background: #e53e3e;
    color: white;
}

.logout-confirmation-btn.confirm:hover {
    background: #c53030;
    transform: translateY(-2px);
}

.logout-confirmation-btn.loading {
    background: #718096;
    cursor: not-allowed;
    transform: none;
}

.logout-confirmation-btn.loading:hover {
    background: #718096;
    transform: none;
}

/* Mobile responsive for logout modal */
@media (max-width: 768px) {
    .logout-confirmation-content {
        margin: 1rem;
        padding: 1.5rem;
        max-width: none;
        width: calc(100% - 2rem);
    }
    
    .logout-confirmation-title {
        font-size: 1.25rem;
    }
    
    .logout-confirmation-message {
        font-size: 0.9rem;
    }
    
    .logout-confirmation-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .logout-confirmation-btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .logout-confirmation-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 999999 !important;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
}

.notification-content i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.notification-content span {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.1);
}

.notification-info {
    border-left: 4px solid #3182ce;
}

.notification-info .notification-content i {
    color: #3182ce;
}

.notification-success {
    border-left: 4px solid #22c55e;
}

.notification-success .notification-content i {
    color: #22c55e;
}

.notification-error {
    border-left: 4px solid #e53e3e;
}

.notification-error .notification-content i {
    color: #e53e3e;
}

.notification-warning {
    border-left: 4px solid #eab308;
}

.notification-warning .notification-content i {
    color: #eab308;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-height: 100vh;
}

.main-content.expanded {
    margin-left: 80px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #22c55e;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(34, 197, 94, 0.1);
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    position: relative;
    background: none;
    border: none;
    color: #4a5568;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    transform: translateY(-2px);
}

.notification-badge {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: #e53e3e;
    color: white;
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    border-radius: 1rem;
    min-width: 18px;
    text-align: center;
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: relative;
}

.notifications-content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 500px;
    overflow: hidden;
    margin-top: 10px;
}

.notifications-content.show {
    display: block;
}

.notifications-header {
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

.notifications-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid #f8f9fa;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item.unread {
    background: #e3f2fd;
}

.notification-item.unread:hover {
    background: #bbdefb;
}

.notification-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.notification-info {
    flex: 1;
}

.notification-sender {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.notification-time {
    font-size: 12px;
    color: #6c757d;
}

.notification-message {
    font-size: 13px;
    color: #495057;
    line-height: 1.4;
}

.notifications-footer {
    padding: 15px 20px;
    border-top: 1px solid #dee2e6;
    text-align: center;
}

.user-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;

}

.user-menu:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.user-dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    color: #4a5568;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    min-width: 200px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: #22c55e;
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: #e9ecef;
    margin: 0.5rem 0;
}

#logoutBtn {
    color: #dc3545;
}

#logoutBtn:hover {
    background: #dc3545;
    color: #fff;
}

/* Dashboard Content */
.dashboard-content {
    padding: 2rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-change.positive {
    color: #38a169;
}

.stat-change.negative {
    color: #e53e3e;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(34, 197, 94, 0.05);
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2d3748;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title i {
    color: #22c55e;
}

.card-action {
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.card-action:hover {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.card-content {
    padding: 1.5rem;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: rgba(34, 197, 94, 0.05);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.8rem;
    color: #718096;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 2px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #22c55e;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

.quick-action-btn i {
    font-size: 1.5rem;
}

.quick-action-btn span {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

/* Status List */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.status-item:hover {
    background: rgba(34, 197, 94, 0.05);
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-indicator.online {
    background: #38a169;
    box-shadow: 0 0 10px rgba(56, 161, 105, 0.5);
}

.status-indicator.warning {
    background: #eab308;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.5);
}

.status-indicator.offline {
    background: #e53e3e;
    box-shadow: 0 0 10px rgba(229, 62, 62, 0.5);
}

.status-label {
    flex: 1;
    font-weight: 500;
    color: #2d3748;
}

.status-value {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        position: fixed;
    }
    
    .sidebar.mobile-open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .user-menu {
        display: none;
    }
    
    /* Profile dropdown responsive */
    .profile-dropdown-menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin-bottom: 0;
        border-radius: 0.5rem 0.5rem 0 0;
        max-height: 60vh;
        overflow-y: auto;
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .sidebar.collapsed .profile-dropdown-menu {
        width: 100% !important;
        min-width: 100% !important;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .header-actions {
        gap: 0.25rem;
    }
    
    .action-btn {
        padding: 0.5rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card,
.dashboard-card {
    animation: slideInUp 0.6s ease-out;
}

.nav-item {
    animation: slideInLeft 0.6s ease-out;
}

/* Background Pattern */
.dashboard-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/bg-auth.jpg') center center/cover no-repeat;
    opacity: 0.1;
    z-index: -1;
    pointer-events: none;
}
