:root {
    --dark-bg: #0a0a0d;
    --text-color: #d8d8d8;
    --header-color: #a7a28f;
    --accent-color: #571f1f;
    --secondary-accent: #2c4f4f;
    --border-color: #3a3a3a;
    --highlight: #a63c3c;
    --paper-color: #e0d9c5;
    --aged-paper: #d5c8a9;
}

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

body {
    font-family: 'IM Fell English', serif;
    background-color: var(--dark-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23271e1e' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23291d1d'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");
    color: var(--text-color);
    min-height: 100vh;
}

/* Landing Page */
.landing-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    text-align: center;
}

.content {
    max-width: 800px;
    background-color: rgba(10, 10, 13, 0.7);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23a7a28f' d='M50,8c-23.2,0-42,18.8-42,42s18.8,42,42,42s42-18.8,42-42S73.2,8,50,8z M78.9,69.1c-2.8,4.2-6.4,7.8-10.6,10.6 c-4.3,2.8-9,5-14.1,6.3L50,50L78.9,69.1z M79.7,33c2.9,4.3,4.7,9.4,5.1,14.8L50,50L79.7,33z M44.8,16.2c4.9-0.9,10-0.7,14.8,0.7 L50,50L44.8,16.2z M21.1,30.9c2.8-4.2,6.4-7.8,10.6-10.6c4.3-2.8,9-5,14.1-6.3L50,50L21.1,30.9z M20.3,67c-2.9-4.3-4.7-9.4-5.1-14.8 L50,50L20.3,67z M55.2,83.8c-4.9,0.9-10,0.7-14.8-0.7L50,50L55.2,83.8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

h1 {
    color: var(--header-color);
    font-family: 'Special Elite', cursive;
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

h2 {
    color: var(--accent-color);
    font-family: 'Special Elite', cursive;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.content p {
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Special Elite', cursive;
}

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

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Auth pages (login & register) */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    background-color: rgba(10, 10, 13, 0.8);
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--header-color);
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: rgba(30, 30, 30, 0.7);
    color: var(--text-color);
    font-family: 'IM Fell English', serif;
}

.form-actions {
    margin-top: 30px;
    text-align: center;
}

.form-footer {
    margin-top: 20px;
    text-align: center;
}

.form-footer p {
    margin-bottom: 10px;
}

.form-footer a {
    color: var(--header-color);
    text-decoration: none;
}

.form-footer a:hover {
    color: var(--highlight);
    text-decoration: underline;
}

.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.2);
    border: 1px solid #198754;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid #dc3545;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.2);
    border: 1px solid #0dcaf0;
}

/* Navigation */
.navbar {
    background-color: rgba(10, 10, 13, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-title {
    font-family: 'Special Elite', cursive;
    font-size: 1.5rem;
    letter-spacing: 1px;
    color: var(--header-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--accent-color);
    color: var(--paper-color);
}

.muted {
    color: rgba(216, 216, 216, 0.6);
    font-style: italic;
}

.campaign-card p {
    margin: 8px 0;
    line-height: 1.4;
}

.campaign-card small {
    color: var(--header-color);
    display: block;
    margin-top: 10px;
}

/* Campaign styles */
.character-sheet {
    background-color: rgba(10, 10, 13, 0.7);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    border: 1px solid var(--border-color);
}

.sheet-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.cthulhu-symbol {
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23a7a28f' d='M50,8c-23.2,0-42,18.8-42,42s18.8,42,42,42s42-18.8,42-42S73.2,8,50,8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.action-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.no-items-message {
    text-align: center;
    padding: 30px;
    background-color: rgba(30, 30, 30, 0.7);
    border: 1px dashed var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .button-container {
        flex-direction: column;
        gap: 10px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .stats-overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .activity-item {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .stats-overview {
        grid-template-columns: 1fr;
    }
}
