:root {
    --bg-body: #111827;
    --bg-card: #1f2937;
    --bg-input: #111827;
    --bg-hover: #374151;
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-placeholder: #6b7280;
    
    --border-color: #374151;
    --border-dashed: #4b5563;
    
    --primary-blue: #2563eb;
    --accent-purple: #9333ea;
    --danger-red: #ef4444;
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: system-ui, -apple-system, sans-serif;
    height: 100vh;
    padding: 1.5rem;
    overflow: hidden;
}

h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: 0.025em; }
h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.25rem; }
h3 { font-size: 0.875rem; font-weight: 700; margin-bottom: 0.75rem; }
p { font-size: 0.875rem; color: var(--text-muted); }
.small-text { font-size: 0.75rem; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    height: calc(100vh - 100px);
}

@media (max-width: 768px) {
    .main-grid {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
}

.panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.btn {
    padding: 0.375rem 1rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    color: white;
    transition: background-color 0.2s;
}

.btn-nav { background-color: var(--bg-card); }
.btn-nav:hover { background-color: var(--bg-hover); }

.btn-primary { background-color: var(--primary-blue); width: 100%; margin-bottom: 1rem; }
.btn-primary:hover { background-color: var(--primary-blue-hover); }

.btn-secondary { background-color: var(--bg-hover); }
.btn-secondary:hover { background-color: #4b5563; }

.btn-icon { background: none; color: var(--text-muted); padding: 0 0.25rem; }
.btn-icon:hover { color: var(--danger-red); }

.btn-add {
    background: none;
    color: #60a5fa;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.btn-add span { font-size: 1.125rem; line-height: 1; }

input[type="password"],
select {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

input:focus, select:focus {
    outline: 2px solid var(--primary-blue);
    border-color: transparent;
}

.events-toolbar { display: flex; gap: 0.5rem; margin-bottom: 1rem; }
.empty-state {
    flex: 1;
    border: 1px dashed var(--border-dashed);
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.drop-zone {
    border: 2px dashed var(--border-dashed);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: background 0.2s;
}
.drop-zone:hover { background-color: rgba(55, 65, 81, 0.5); }

.section-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
    margin-bottom: 0.75rem;
    color: #d1d5db;
}

.extract-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    margin-bottom: 1.5rem;
}

.container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 0.875rem;
    color: #d1d5db;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: -2px;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: var(--bg-hover);
    border-radius: 4px;
}

.container:hover input ~ .checkmark {
    background-color: #4b5563;
}

.container input:checked ~ .checkmark {
    background-color: var(--primary-blue);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.container input:checked ~ .checkmark:after {
    display: block;
}

.container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.preview-box {
    background-color: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 0.25rem;
    padding: 1rem;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.reminder-group { margin-bottom: 1.5rem; }
.group-title {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.text-blue { color: #60a5fa; }
.text-purple { color: #c084fc; }

.reminder-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.reminder-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(55, 65, 81, 0.3);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.reminder-label { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; }
.input-sm { width: 4rem; }
.select-flex { flex: 1; }

.code-font { font-family: monospace; font-size: 0.75rem; color: var(--text-muted); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-card); }
::-webkit-scrollbar-thumb { background: var(--border-dashed); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6b7280; }
