:root {
    --bg-color: #050505;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.25);
    --text-color: #e0e0e0;
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --danger-color: #ef4444;
    --success-color: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
    z-index: -1;
}

.glass-container {
    width: 95%;
    max-width: 1200px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 20px;
}

header h1 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: #888;
    font-size: 0.9rem;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #bbb;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 2px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
}

th:last-child {
    border-right: none;
}

td {
    padding: 10px;
    border-bottom: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
}

td:last-child {
    border-right: none;
}

/* Excel-like Input styling */
input[type="text"], 
input[type="date"], 
select {
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-color);
    padding: 8px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23e0e0e0' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    padding-right: 30px;
}

option {
    background-color: #1a1a1a;
    color: var(--text-color);
}

input[type="text"]:focus, 
input[type="date"]:focus, 
select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

input[type="text"]:hover, 
input[type="date"]:hover, 
select:hover {
    background: rgba(255, 255, 255, 0.02);
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, background 0.2s;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-danger {
    background: transparent;
    color: var(--danger-color);
    font-size: 0.8rem;
    padding: 4px 8px;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Task Specific */
.task-done input[type="text"] {
    text-decoration: line-through;
    color: #666;
}

.add-row {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}
