:root {
    --bg-dark: #0f0f11;
    --bg-charcoal: #151515;
    --bg-slate: #1a1a1a;
    --silver-light: #e8e8e8;
    --silver-mid: #a0a0a0;
    --silver-dark: #666666;
    --accent: #f59e0b;
    --danger: #ef4444;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--silver-light);
    height: 100vh;
    display: flex;
}

/* Typography */
h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* Login Screen */
.login-container {
    width: 100%; height: 100vh;
    display: flex; justify-content: center; align-items: center;
    background: linear-gradient(135deg, var(--bg-charcoal) 0%, #000000 100%);
    position: relative;
    overflow: hidden;
}

/* Subtle background glow */
.login-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4rem 3rem; 
    border-radius: 20px;
    width: 100%; max-width: 420px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.login-card .logo { margin-bottom: 2rem; }
.login-card h2 { 
    color: #fff; 
    margin-bottom: 2.5rem; 
    font-size: 1.2rem; 
    letter-spacing: 4px; 
    text-transform: uppercase; 
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

.form-group { margin-bottom: 2rem; text-align: left; }
.form-group label { display: block; font-size: 0.75rem; color: var(--silver-mid); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 0.8rem; }
.form-group input { 
    width: 100%; 
    padding: 1rem; 
    background: rgba(0, 0, 0, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 8px;
    color: #fff; 
    font-size: 1rem; 
    outline: none; 
    transition: all 0.3s ease; 
}
.form-group input:focus { 
    border-color: var(--accent); 
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

.btn { 
    width: 100%; 
    padding: 1.2rem; 
    background: var(--accent); 
    border: none; 
    color: #000; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    border-radius: 8px; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    margin-top: 1.5rem; 
    font-size: 0.9rem;
}
.btn:hover { 
    background: #fcd34d; 
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(245, 158, 11, 0.5);
}
.error-msg { color: var(--danger); font-size: 0.85rem; margin-top: 1rem; height: 1rem; }

/* Dashboard Screen */
.dashboard-container {
    width: 100%; display: flex; height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px; 
    background: linear-gradient(180deg, rgba(26,26,26,0.9) 0%, rgba(15,15,17,0.95) 100%); 
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex; flex-direction: column; padding: 0;
    box-shadow: 5px 0 20px rgba(0,0,0,0.5);
    z-index: 10;
}
.logo-small { 
    margin: 2rem 0; 
    padding: 0 1rem;
    text-align: center;
}
.nav-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.nav-links li { width: 100%; }
.nav-links a { 
    color: var(--silver-mid); text-decoration: none; display: flex; align-items: center; gap: 1.2rem; 
    padding: 1rem 2rem; transition: all 0.3s ease; font-size: 0.85rem; letter-spacing: 1.5px; 
    text-transform: uppercase; font-weight: 600; border-left: 3px solid transparent;
}
.nav-links a i { font-size: 1.1rem; width: 20px; text-align: center; opacity: 0.7; transition: opacity 0.3s; }
.nav-links li:hover a { color: #fff; background: rgba(255,255,255,0.02); }
.nav-links li:hover a i { opacity: 1; }
.nav-links li.active a { 
    color: var(--accent); background: linear-gradient(90deg, rgba(245, 158, 11, 0.08) 0%, transparent 100%); 
    border-left: 3px solid var(--accent);
}
.nav-links li.active a i { opacity: 1; }

/* Main Content */
.main-content {
    flex: 1; padding: 3rem 4rem; overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.05) 0%, transparent 60%),
                var(--bg-dark);
}
.main-content header { margin-bottom: 3rem; }
.main-content h1 { font-size: 2.5rem; color: #fff; margin-bottom: 0.5rem; }
.main-content p { color: var(--silver-dark); }

/* Table */
.table-container { 
    background: rgba(26, 26, 26, 0.4); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.08); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 1.2rem; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); }
th { background: rgba(0,0,0,0.2); color: var(--silver-mid); font-weight: bold; text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; }
td { color: var(--silver-light); font-size: 0.95rem; }
tr:hover { background: rgba(255,255,255,0.02); }

.stars { color: var(--accent); font-size: 0.8rem; }
.btn-delete { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; transition: all 0.3s; font-size: 0.8rem; }
.btn-delete:hover { background: var(--danger); color: #fff; }
.btn-done { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); padding: 0.5rem 1rem; border-radius: 5px; cursor: pointer; transition: all 0.3s; font-size: 0.8rem; margin-right: 0.5rem; }
.btn-done:hover { background: #10b981; color: #fff; }
.empty-msg { text-align: center; padding: 3rem; color: var(--silver-dark); font-style: italic; }

/* Badges & Icons */
.badge { display: inline-block; padding: 0.3rem 0.6rem; border-radius: 20px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }
.badge-pending { background: rgba(245, 158, 11, 0.15); color: var(--accent); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-done { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }

.contact-item { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.3rem; }
.contact-item i { color: var(--silver-dark); width: 14px; text-align: center; }

/* Row Animation */
@keyframes rowFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.new-row { animation: rowFadeIn 0.5s ease-out forwards; }
.row-done { opacity: 0.5; filter: grayscale(50%); transition: all 0.3s ease; }
tr { cursor: pointer; transition: background 0.2s ease; }
tr:hover { background: rgba(255, 255, 255, 0.05); }
td button { position: relative; z-index: 2; } /* Prevent row click when clicking button */

/* Side Panel */
.side-panel-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
    z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.side-panel-overlay.active { opacity: 1; visibility: visible; }

.side-panel {
    position: fixed; top: 0; right: -450px; width: 100%; max-width: 450px; height: 100vh;
    background: var(--bg-charcoal); border-left: 1px solid rgba(255,255,255,0.05);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5); z-index: 1000;
    display: flex; flex-direction: column; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.side-panel.active { right: 0; }

.side-panel-header {
    padding: 2rem; border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; justify-content: space-between; align-items: center;
}
.side-panel-header h2 { font-size: 1.5rem; color: #fff; margin: 0; }
.sp-close { background: none; border: none; color: var(--silver-dark); font-size: 1.5rem; cursor: pointer; transition: color 0.3s; }
.sp-close:hover { color: #fff; }

.side-panel-content { padding: 2rem; overflow-y: auto; flex: 1; }

.sp-badge-container { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.sp-date { font-size: 0.85rem; color: var(--silver-dark); }

.sp-card {
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px; padding: 1.5rem; margin-bottom: 1.5rem;
}
.sp-card h3 { font-size: 1rem; color: var(--silver-mid); margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: 1px; }

.sp-info-row { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.sp-info-row:last-child { margin-bottom: 0; }
.sp-icon { font-size: 1.2rem; background: rgba(0,0,0,0.3); width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.sp-data label { display: block; font-size: 0.75rem; color: var(--silver-dark); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 0.2rem; }
.sp-data span, .sp-data a { font-size: 0.95rem; color: var(--silver-light); }

.sp-actions { display: flex; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.05); }
.sp-actions button { flex: 1; padding: 1rem; font-size: 0.9rem; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 0.5rem; text-transform: uppercase; letter-spacing: 1px; font-weight: bold; }
