* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background: radial-gradient(circle at top right, #10101a, #0a0a0f);
    color: #ffffff;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
    filter: blur(50px);
    z-index: -1;
}

.container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 450px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

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

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

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: #94a3b8;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.option-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    width: 100%;
    outline: none;
}

.option-btn:hover {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    transform: scale(1.02);
    box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.4);
    border-color: transparent;
}

.option-btn:active {
    transform: scale(0.98);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 10px 20px -5px rgba(34, 197, 94, 0.4);
}

.success-icon svg {
    width: 40px;
    height: 40px;
    stroke: white;
}

.success-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: #a855f7;
}

/* Admin Dashboard Styles */
.admin-container {
    width: 90%;
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 24px;
    animation: fadeIn 0.6s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.5rem;
    margin-top: 1rem;
}

th {
    text-align: left;
    color: #94a3b8;
    font-weight: 600;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: none;
}

td {
    padding: 1rem;
    border-bottom: none;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s;
}

tr.user-row td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}
tr.user-row td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.user-row:hover td {
    background: rgba(255, 255, 255, 0.06);
}

.utility-badge {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.controls {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.action-btn:hover {
    background: #6366f1;
    transform: translateY(-2px);
}

.action-btn.minus:hover {
    background: #ef4444;
}

.last-seen {
    font-family: monospace;
    color: #64748b;
    font-size: 0.85rem;
}

.add-user-box {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-input {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    width: 150px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.admin-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: rgba(0, 0, 0, 0.3);
}

.admin-input::placeholder {
    color: #64748b;
}

.checkin-btn {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.2);
}
.checkin-btn:hover {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    box-shadow: 0 10px 20px -5px rgba(34, 197, 94, 0.4);
    color: white;
    border-color: transparent;
}
.checkout-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.2);
}
.checkout-btn:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 10px 20px -5px rgba(239, 68, 68, 0.4);
    color: white;
    border-color: transparent;
}
.action-btn.delete {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.action-btn.delete:hover {
    background: #ef4444;
    color: white;
}
.badge {
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge.check-in {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge.check-out {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge.default {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, #1e1e2d, #151521);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    width: 90%;
    max-width: 550px;
}

.schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.2s;
}
.schedule-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.schedule-row span.day-name {
    width: 100px;
    font-weight: 600;
    color: #cbd5e1;
}

.schedule-row input[type="time"] {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    font-family: 'Inter', monospace;
    transition: border-color 0.2s;
}
.schedule-row input[type="time"]:focus {
    border-color: #6366f1;
    outline: none;
}

.schedule-row label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #94a3b8;
}
