@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=JetBrains+Mono:wght@400;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a; /* Deep Slate */
    color: #f8fafc;
    background-image: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 70%);
    background-attachment: fixed;
}

/* Theme Configuration */
:root {
    --accent: #ffab40;
    --accent-hover: #ffc371;
    --card-bg: #1e293b;
    --border: #334155;
    --primary: #193549;
    --secondary: #002240;
    --tertiary: #25435A;
    --fg-primary: #FFFFFF;
    --fg-secondary: #97B1C2;
    --danger-fg: #ff8a8a;
    --danger-bg: rgba(255, 100, 100, 0.1);
    --danger-border: #800000;
    --danger-fg-hover: #ffabab;
    --danger-bg-hover: rgba(255, 100, 100, 0.2);
}

.home-button {
    position: fixed;
    top: 1rem;
    left: 1rem;
    background-color: var(--secondary);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 1001; /* Ensure it's above other headers */
    border: 1px solid var(--border);
    opacity: 0;
    transform: translateX(-20px);
}

.home-button:hover {
    background-color: var(--tertiary);
    transform: translateX(0) scale(1.1);
    opacity: 1;
}

/* Form elements */
input[type="text"],
input[type="password"],
input[type="number"],
textarea,
select {
    background-color: var(--tertiary);
    color: var(--fg-primary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 171, 64, 0.5);
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-accent {
    background-color: var(--accent);
    color: var(--secondary);
    border-color: var(--accent);
}

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

.btn-secondary {
    background-color: var(--tertiary);
    color: var(--fg-primary);
    border-color: var(--border);
}

.btn-secondary:hover {
    background-color: var(--border);
}

.btn-danger {
    background-color: var(--danger-bg);
    color: var(--danger-fg);
    border-color: var(--danger-border);
}

.btn-danger:hover {
    background-color: var(--danger-bg-hover);
    color: var(--danger-fg-hover);
}


/* Settings Modal */
.settings-modal {
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
}

.settings-modal-content {
    background-color: var(--secondary);
    border: 1px solid var(--border);
}


/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #193549; }
::-webkit-scrollbar-thumb { background: #4a5568; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #718096; }
