.dashboard-container {
    animation: fadeIn 0.5s ease;
}

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

/* Welcome Section */
.welcome-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-text h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.current-time {
    text-align: right;
}

#live-clock {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

#live-date {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

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

.stat-card.primary .stat-icon { background: #667eea; }
.stat-card.success .stat-icon { background: #48bb78; }
.stat-card.warning .stat-icon { background: #ed8936; }

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Actions */
.actions-section {
    margin-bottom: 2rem;
}

.actions-section h2 {
    margin-bottom: 1rem;
    color: #2d3748;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    color: #4a5568;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.action-card:hover {
    transform: translateY(-5px);
    color: inherit;
}

.action-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* Tables */
.attendance-table,
.history-table {
    width: 100%;
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #f7fafc;
    border-radius: 10px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    align-items: center;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.status-badge.hadir { background: #c6f6d5; color: #22543d; }
.status-badge.terlambat { background: #fed7d7; color: #742a2a; }

/* Attendance Page */
.attendance-header {
    text-align: center;
    margin-bottom: 2rem;
}

.today-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.attendance-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.time-record {
    display: flex;
    gap: 1.5rem;
}

.time-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.no-attendance {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e53e3e;
}

/* Buttons */
.attendance-actions {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-in-btn {
    background: #48bb78;
    color: white;
}

.check-out-btn {
    background: #ed8936;
    color: white;
}

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

/* Profile */
.profile-container {
    animation: fadeIn 0.5s ease;
}

.profile-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.profile-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    color: white;
}

.info-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.info-group label {
    display: block;
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.info-group p {
    color: #2d3748;
    font-size: 1.1rem;
    font-weight: 600;
}

.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-badge.admin { background: #fed7d7; color: #742a2a; }
.role-badge.user { background: #c6f6d5; color: #22543d; }

.profile-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-item i {
    font-size: 2rem;
    color: #667eea;
}

@media (max-width: 768px) {
    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}