/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 120px);
}

/* Countdown Styles */
.countdown-box {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
}

.countdown-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.countdown-number {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.countdown-label {
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Card Styles */
.card {
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
}

/* Status Cards */
.status-lulus .status-header {
    background: linear-gradient(135deg, var(--success-color), #2ecc71) !important;
}

.status-tunda .status-header {
    background: linear-gradient(135deg, var(--warning-color), #f1c40f) !important;
}

/* Avatar Circles */
.avatar-circle {
    transition: all 0.3s ease;
}

.avatar-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.avatar-circle-sm {
    width: 40px;
    height: 40px;
}

/* Button Styles */
.btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 20px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-lg {
    padding: 12px 30px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #229954);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, var(--warning-color), #d68910);
    border: none;
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger-color), #c0392b);
    border: none;
}

/* Login Pages */
.login-page,
.admin-login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.login-container,
.admin-login-container {
    width: 100%;
    padding: 20px;
}

.login-card,
.admin-login-card {
    border-radius: 15px;
    border: none;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.login-icon,
.admin-icon {
    text-align: center;
}

.icon-wrapper {
    background: linear-gradient(135deg, var(--secondary-color), #2980b9);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Profile Page */
.profile-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
}

/* Table Styles */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: var(--primary-color);
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(52, 152, 219, 0.05);
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 8px;
}

/* Progress Bar */
.progress {
    border-radius: 10px;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    border-radius: 10px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    padding: 30px 0;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .countdown-box {
        margin-bottom: 15px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .table-responsive {
        font-size: 14px;
    }
    
    .btn-group {
        display: flex;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .login-card,
    .admin-login-card {
        padding: 15px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate__fadeIn {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Gradient Backgrounds */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #34495e) !important;
}

.bg-gradient-success {
    background: linear-gradient(135deg, var(--success-color), #27ae60) !important;
}

.bg-gradient-warning {
    background: linear-gradient(135deg, var(--warning-color), #f39c12) !important;
}

.bg-gradient-danger {
    background: linear-gradient(135deg, var(--danger-color), #c0392b) !important;
}

/* Custom Utilities */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.box-shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.box-shadow-hover:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.border-radius-10 {
    border-radius: 10px;
}

.border-radius-20 {
    border-radius: 20px;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}