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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0f0f0f;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Login/Signup Box */
.login-box {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid #2a2a2a;
}

.login-box h1 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

.login-box .subtitle {
    color: #999;
    text-align: center;
    margin-bottom: 30px;
}

.login-box h2 {
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #ccc;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #0f0f0f;
    color: #fff;
}

.form-group input:focus {
    outline: none;
    border-color: #fff;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary {
    background: transparent;
    color: #87a9ff;
    border: 2px solid #87a9ff;
}

.btn-primary:hover {
    background: #87a9ff;
    color: #000;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #2a2a2a;
    color: #fff;
    border: 1px solid #333;
}

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

.btn-danger {
    background: #ff4444;
    color: white;
}

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

/* Divider */
.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #333;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.divider span {
    background: #1a1a1a;
    padding: 0 10px;
    color: #666;
}

/* Switch Form Link */
.switch-form {
    text-align: center;
    margin-top: 20px;
    color: #999;
}

.switch-form a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.switch-form a:hover {
    text-decoration: underline;
}

/* Error Message */
.error-message {
    background: #2a1a1a;
    color: #ff6666;
    padding: 12px;
    border-radius: 5px;
    margin-top: 15px;
    border: 1px solid #442222;
}

/* Success Message */
.success-message {
    background: #1a2a1a;
    color: #66ff66;
    padding: 12px;
    border-radius: 5px;
    margin-top: 15px;
    border: 1px solid #224422;
}

/* Dashboard Styles */
.dashboard {
    background: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a2a2a;
}

.dashboard h2 {
    color: #fff;
}

.dashboard p {
    color: #ccc;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2a2a2a;
}

.dashboard-header h1 {
    color: #fff;
    font-size: 28px;
}

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

.user-email {
    color: #999;
}

/* Navigation */
.nav {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.nav-btn {
    padding: 10px 20px;
    background: #2a2a2a;
    border: 1px solid #333;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #ccc;
    transition: all 0.3s;
}

.nav-btn:hover {
    background: transparent;
    color: #87a9ff;
    border-color: #87a9ff;
}

.nav-btn.active {
    background: transparent;
    color: #87a9ff;
    border: 2px solid #87a9ff;
}

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

.stat-card {
    background: #2a2a2a;
    color: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #333;
}

.stat-card h3 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0.7;
    color: #999;
}

.stat-card .stat-value {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th {
    background: #2a2a2a;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid #333;
}

table td {
    padding: 12px;
    border-bottom: 1px solid #2a2a2a;
    color: #ccc;
}

table tr:hover {
    background: #222;
}

/* Calendar */
.calendar-container {
    margin-top: 20px;
}

#calendarGrid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #333;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    min-height: 60px;
    background: #2a2a2a;
    color: #fff;
}

.calendar-day:hover {
    border-color: #fff;
    background: #333;
}

.calendar-day.blocked {
    background: #2a1a1a;
    border-color: #442222;
    color: #ff6666;
}

.calendar-day.past {
    opacity: 0.3;
    cursor: not-allowed;
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
    }
    
    .dashboard {
        padding: 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        flex-direction: column;
    }
    
    .nav-btn {
        width: 100%;
    }
}
