* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Login Screen */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 50%, #f0f0f0 100%);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-container::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(211, 47, 47, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.login-header {
    text-align: center;
    margin-bottom: 10px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.logo {
    width: 300px;
    height: 300px;
    margin: 0 auto -50px;
    border-radius: 20px;
    object-fit: contain;
    display: block !important;
    animation: slideDown 0.8s ease-out;
    position: relative;
    z-index: 2;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header h1 {
    font-size: 36px;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 18px;
    opacity: 0.9;
}

#login-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin-top: 0;
    position: relative;
    z-index: 2;
    animation: slideUp 0.8s ease-out;
    border: 1px solid rgba(211, 47, 47, 0.1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #D32F2F;
}

.input-group input {
    width: 100%;
    padding: 14px 14px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f8f8;
}

.input-group input:focus {
    outline: none;
    border-color: #D32F2F;
    background: white;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 10px 20px;
    background: #757575;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #616161;
}

.btn-success {
    padding: 10px 20px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-success:hover {
    background: #388E3C;
}

.btn-danger {
    padding: 10px 20px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* Header */
.app-header {
    background: white;
    padding: 16px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left, .header-center, .header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-center {
    flex: 1;
    justify-content: center;
}

.header-logo {
    height: 50px;
    object-fit: contain;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
    position: relative;
}

.icon-btn:hover {
    background: #f5f5f5;
}

.badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #D32F2F;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Main Content */
.main-content {
    display: flex;
    min-height: calc(100vh - 72px);
}

.sidebar {
    width: 260px;
    background: white;
    box-shadow: 2px 0 8px rgba(0,0,0,0.05);
    overflow-y: auto;
    position: fixed;
    top: 72px;
    bottom: 0;
    left: 0;
    z-index: 90;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #D32F2F;
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: #B71C1C;
}

.sidebar-nav {
    padding: 16px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #f5f5f5;
    color: #D32F2F;
}

.nav-item.active {
    background: #ffebee;
    color: #D32F2F;
    border-left-color: #D32F2F;
    font-weight: 600;
}

.nav-divider {
    padding: 16px 24px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
}

.content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    margin-left: 260px;
    min-height: calc(100vh - 72px);
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
}

.card-header i {
    color: #D32F2F;
    font-size: 24px;
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.stat-content p {
    font-size: 14px;
    color: #666;
}

/* Attendance */
.attendance-container {
    display: grid;
    gap: 24px;
}

.attendance-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.attendance-header {
    text-align: center;
    margin-bottom: 32px;
}

.attendance-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.date-display {
    font-size: 16px;
    color: #999;
    font-weight: 500;
}

.time-display {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.time-box {
    background: linear-gradient(135deg, #f5f5f5, #fafafa);
    border-radius: 16px;
    padding: 24px 48px;
    border: 2px solid #f0f0f0;
}

.time-label {
    font-size: 14px;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.time-value {
    font-size: 56px;
    font-weight: 700;
    color: #D32F2F;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.punch-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.punch-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    border: none;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    flex: 0 0 auto;
    width: 280px;
}

.punch-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

.punch-btn:active {
    transform: translateY(-2px);
}

.punch-btn.punch-in {
    background: linear-gradient(135deg, #4CAF50, #388E3C);
}

.punch-btn.punch-out {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.punch-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important;
}

.punch-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.punch-text {
    text-align: left;
}

.punch-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.punch-subtitle {
    font-size: 13px;
    opacity: 0.9;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.attendance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 10px;
    border-left: 4px solid #D32F2F;
    transition: all 0.3s;
}

.attendance-item:hover {
    background: #f5f5f5;
    transform: translateX(4px);
}

.attendance-item:last-child {
    margin-bottom: 0;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #D32F2F;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background: #fafafa;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-pending {
    background: #FFF3E0;
    color: #F57C00;
}

.status-approved {
    background: #E8F5E9;
    color: #388E3C;
}

.status-rejected {
    background: #FFEBEE;
    color: #D32F2F;
}

/* Expense Items */
.expense-items {
    margin-top: 16px;
}

.expense-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 40px;
    gap: 12px;
    margin-bottom: 12px;
    align-items: end;
}

.expense-total {
    text-align: right;
    font-size: 20px;
    font-weight: 700;
    color: #D32F2F;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid #f0f0f0;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.btn-add {
    background: #4CAF50;
    color: white;
}

.btn-remove {
    background: #f44336;
    color: white;
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #D32F2F;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: -260px;
        top: 72px;
        height: calc(100vh - 72px);
        z-index: 99;
        transition: left 0.3s;
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .content {
        margin-left: 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .punch-buttons-container {
        flex-direction: column;
    }

    .attendance-card {
        padding: 24px;
    }

    .time-box {
        padding: 20px 32px;
    }

    .time-value {
        font-size: 42px;
    }
}

/* Messages */
.messages-main-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    height: 600px;
    margin-top: 20px;
}

.messages-sidebar {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    overflow-y: auto;
}

.messages-sidebar h4 {
    color: #333;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 600;
}

.chats-section {
    margin-bottom: 30px;
}

.chat-item, .user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 8px;
    background: white;
    border: 1px solid #e0e0e0;
}

.chat-item:hover, .user-item:hover {
    background: #f0f0f0;
}

.chat-item.active {
    background: #D32F2F;
    color: white;
}

.chat-avatar, .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #D32F2F;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.chat-item.active .chat-avatar {
    background: white;
    color: #D32F2F;
}

.chat-info, .user-info {
    flex: 1;
    min-width: 0;
}

.chat-name, .user-name {
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-subtitle, .user-email {
    font-size: 12px;
    opacity: 0.7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-area {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.empty-chat-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
}

.empty-chat-state i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.chat-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #D32F2F;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.chat-header-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chat-header-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.message {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    word-wrap: break-word;
    position: relative;
}

.message.sent {
    align-self: flex-end;
    background: #D32F2F;
    color: white;
}

.message.received {
    align-self: flex-start;
    background: #f0f0f0;
    color: #333;
}

.message-sender {
    font-size: 12px;
    font-weight: 600;
    color: #D32F2F;
    margin-bottom: 4px;
}

.message-text {
    line-height: 1.4;
    margin-bottom: 4px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
}

.message.sent .message-time {
    color: rgba(255, 255, 255, 0.8);
}

.chat-input-container {
    padding: 16px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-input {
    flex: 1;
    background: #f5f5f5;
    border: none;
    border-radius: 24px;
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
}

.chat-send-btn {
    background: #D32F2F;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.chat-send-btn:hover {
    background: #B71C1C;
}

/* Modal Styles */
.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: 1000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #D32F2F;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.member-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid #D32F2F;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #D32F2F;
}

.member-item.selected .member-checkbox {
    background: #D32F2F;
    color: white;
}

@media (max-width: 768px) {
    .messages-main-container {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .messages-sidebar {
        max-height: 300px;
    }
    
    .chat-area {
        height: 500px;
    }
}

/* Enhanced Dashboard Styles */
.dashboard-welcome-card {
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(211, 47, 47, 0.3);
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.6s ease-out;
}

.dashboard-welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.welcome-text {
    color: white;
}

.welcome-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.welcome-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.welcome-date {
    font-size: 14px;
    opacity: 0.8;
    margin-top: 8px;
}

.welcome-illustration {
    font-size: 120px;
    color: rgba(255, 255, 255, 0.15);
    animation: float 3s ease-in-out infinite;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.stat-card-animated {
    animation: slideInUp 0.6s ease-out;
    transition: all 0.3s ease;
}

.stat-card-animated:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    animation: countUp 1s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.stat-progress {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 12px;
}

.stat-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 1s ease-out;
    animation: progressAnimation 1.5s ease-out;
}

@keyframes progressAnimation {
    from {
        width: 0;
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin-top: 24px;
}

.notification-card {
    animation: fadeIn 0.8s ease-out;
}

.quick-actions-card {
    animation: fadeIn 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.card-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-count {
    background: #D32F2F;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.notifications-container {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.notification-item:hover {
    background: #f9f9f9;
    border-left-color: #D32F2F;
    transform: translateX(4px);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-message {
    font-size: 14px;
    color: #333;
    margin-bottom: 4px;
    line-height: 1.5;
}

.notification-date {
    font-size: 12px;
    color: #999;
}

.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.quick-action-btn {
    background: linear-gradient(135deg, #f5f5f5, #fafafa);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #D32F2F, #B71C1C);
    color: white;
    border-color: #D32F2F;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(211, 47, 47, 0.3);
}

.quick-action-btn i {
    font-size: 32px;
    transition: transform 0.3s;
}

.quick-action-btn:hover i {
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 24px;
    }
    
    .welcome-illustration {
        font-size: 60px;
    }
    
    .dashboard-welcome-card {
        padding: 24px;
    }
    
    .quick-actions-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 28px;
    }
}

/* Admin Header Card */
.admin-header-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: slideInDown 0.6s ease-out;
}

.admin-header-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.admin-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.admin-header-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.admin-header-text {
    color: white;
}

.admin-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: white;
}

.admin-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.admin-stats-mini {
    display: flex;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mini-stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
}

.mini-stat-label {
    display: block;
    font-size: 13px;
    color: white;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Admin Table Card */
.admin-table-card {
    animation: fadeIn 0.8s ease-out;
    border-radius: 20px;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: #f5f5f5;
}

.admin-table thead th {
    color: #333;
    padding: 18px 16px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: none;
}

.admin-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.admin-table tbody tr:hover {
    background: #f8f9ff;
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.admin-table tbody td {
    padding: 16px;
    color: #333;
    font-size: 14px;
}

@media (max-width: 768px) {
    .admin-header-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .admin-stats-mini {
        width: 100%;
        justify-content: space-between;
    }
    
    .admin-title {
        font-size: 24px;
    }
}
