@import url('https://fonts.googleapis.com/css2?family=Metamorphous&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700&family=Lexend:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --parchment: #f4f1e8;
    --dark-parchment: #e8e2d0;
    --aged-paper: #d4c5a0;
    --ink-dark: #2c1810;
    --ink-medium: #4a2c1a;
    --royal-purple: #4a1a4a;
    --deep-gold: #b8860b;
    --burnished-gold: #cd853f;
    --forest-green: #2d5016;
    --burgundy: #722f37;
    --shadow-dark: rgba(44, 24, 16, 0.8);
    --glow-gold: rgba(184, 134, 11, 0.3);
    --btn-info-bg: #4a0e0e;
    --btn-info-hover: #631212;
    --btn-info-text: #ffd700;
    --btn-info-border: #8b4513;
    --btn-info-shadow: rgba(139, 69, 19, 0.5);
    --btn-info-glow: rgba(255, 215, 0, 0.4);
}

body {
    font-family: 'Metamorphous', serif;
    background-image: radial-gradient(circle at 20% 80%, rgba(74, 26, 74, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(45, 80, 22, 0.2) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(114, 47, 55, 0.2) 0%, transparent 50%), url("../assets/background/background.001.webp");
    background-color: black;
    background-position: 20% 80%, 80% 20%, 40% 40%, center center;
    color: var(--parchment);
    min-height: 100dvh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    font-weight: 400;
    font-style: normal;
}

    body::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(2px 2px at 20px 130px, rgba(255, 140, 0, 0.8), transparent), radial-gradient(2px 2px at 40px 150px, rgba(255, 69, 0, 0.7), transparent), radial-gradient(1px 1px at 90px 120px, rgba(255, 165, 0, 0.6), transparent), radial-gradient(1px 1px at 130px 140px, rgba(220, 20, 60, 0.5), transparent), radial-gradient(2px 2px at 160px 110px, rgba(255, 215, 0, 0.4), transparent), radial-gradient(1px 1px at 10px 160px, rgba(255, 99, 71, 0.6), transparent), radial-gradient(2px 2px at 180px 135px, rgba(255, 140, 0, 0.5), transparent), radial-gradient(1px 1px at 60px 145px, rgba(255, 20, 147, 0.4), transparent);
        background-repeat: repeat;
        background-size: 200px 200px;
        animation: embers 15s linear infinite;
        pointer-events: none;
        z-index: -1;
    }

@keyframes embers {
    0% {
        transform: translateY(0px) translateX(0px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-200px) translateX(20px);
        opacity: 0;
    }
}

.header, main, .footer {
    width: 100%;
}

main {
    flex: 1 0 auto;
}

footer {
    margin: auto;
}

ul {
    list-style: none;
    padding-left: 1rem;
}

    ul li {
        position: relative;
        padding-left: 1.5rem;
        margin-bottom: 0.5rem;
    }

.header {
    background: linear-gradient(to bottom, rgba(44, 24, 16, 0.95) 0%, rgba(44, 24, 16, 0.4) 100% );
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-dark), inset 0 1px 0 rgba(184, 134, 11, 0.2);
    padding: 1rem 2rem;
    position: relative;
    z-index: 10;
}

    .header::after {
        content: '';
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, var(--deep-gold) 20%, var(--burnished-gold) 50%, var(--deep-gold) 80%, transparent 100% );
    }

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    color: var(--deep-gold);
    text-shadow: 2px 2px 4px var(--shadow-dark);
}

.dragon-emblem {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, var(--burnished-gold), var(--deep-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    border: 3px solid var(--deep-gold);
    box-shadow: 0 0 20px rgba(184, 134, 11, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.3);
    position: relative;
}

    .dragon-emblem::after {
        content: '';
        position: absolute;
        inset: -5px;
        border-radius: 50%;
        background: conic-gradient(var(--deep-gold), transparent, var(--deep-gold));
        z-index: -1;
        animation: rotate 10s linear infinite;
    }

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: center;
}

input {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
    color: var(--ink-dark);
    background-color: var(--dark-parchment);
    border: 2px solid var(--aged-paper);
    border-radius: 8px;
    transition: all 0.3s ease;
}

    input:hover,
    input:focus {
        outline: none;
        border-color: var(--burnished-gold); 
        background-color: var(--parchment); 
        box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 0 10px var(--glow-gold); 
    }

.nav-actions a,
.footer-links a {
    text-decoration: none;
    color: var(--deep-gold);
    font-size: 14px;
    transition: all 0.3s ease;
}

.nav-actions a {
    max-width: 140px;
    text-align: center;
    line-height: 1.2;
    padding: 0 1.5rem;
    position: relative;
}

    .nav-actions a:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 0;
        height: 70%;
        width: 2px;
        background: linear-gradient( to bottom, transparent, rgba(184, 134, 11, 0.5), transparent );
        transform: translateY(-50%);
    }

    .nav-actions a:hover, .footer-links a:hover {
        color: var(--burnished-gold);
        text-shadow: 0 0 10px var(--glow-gold);
    }

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-primary {
    background: linear-gradient(135deg, var(--deep-gold), var(--burnished-gold));
    color: var(--ink-dark);
    border: 2px solid var(--deep-gold);
    box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

.btn-secondary {
    background: linear-gradient(135deg, rgba(74, 26, 74, 0.8), rgba(114, 47, 55, 0.8) );
    color: var(--parchment);
    border: 2px solid var(--royal-purple);
    backdrop-filter: blur(5px);
}

    .btn-secondary:hover {
        background: linear-gradient(135deg, rgba(74, 26, 74, 0.9), rgba(114, 47, 55, 0.9) );
        box-shadow: 0 0 20px rgba(74, 26, 74, 0.4);
    }

.btn-info {
    color: var(--btn-info-text);
    background-color: var(--btn-info-bg);
    border: 2px solid var(--btn-info-border);
    box-shadow: 0 4px 15px var(--btn-info-shadow);
}

    .btn-info::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 120deg, transparent, var(--btn-info-glow), transparent );
        transition: all 0.4s;
    }

    .btn-info:hover {
        background-color: var(--btn-info-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px var(--btn-info-shadow);
    }

        .btn-info:hover::before {
            left: 100%;
        }

.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 3rem;
    position: relative;
    z-index: 5;
    min-height: 300px;
}

.card {
    background-image: url("../assets/background/parchment.001.webp");
    background-size: cover;
    background-repeat: no-repeat;
    border: 3px solid var(--deep-gold);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    box-shadow: 0 10px 30px var(--shadow-dark), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    color: var(--ink-dark);
    transition: transform 0.3s ease;
}

.card-hover:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 50px var(--shadow-dark), 0 0 45px var(--glow-gold);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.card-badge {
    top: -20px;
    left: -20px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--royal-purple), var(--burgundy));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 3px solid var(--deep-gold);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), inset 0 2px 0 rgba(255, 255, 255, 0.2);
    position: relative;
}

.card-title {
    font-size: 1.8rem;
    color: var(--ink-dark);
    margin-bottom: 0.5rem;
}

.card-details {
    color: var(--ink-medium);
    font-size: 1.1rem;
    line-height: 1.6;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--deep-gold);
}

.card-item {
    text-align: center;
    padding: 1rem;
    background: rgba(184, 134, 11, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(184, 134, 11, 0.3);
}

.stat-number {
    font-size: 2rem;
    color: var(--burgundy);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--ink-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.action {
    background: linear-gradient(145deg, rgba(44, 24, 16, 0.9), rgba(74, 26, 74, 0.9) );
    border: 3px solid var(--deep-gold);
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

    .action::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(184, 134, 11, 0.1) 0%, transparent 70% );
        transform: rotate(45deg);
        transition: all 0.6s ease;
        opacity: 0;
    }

.action-hover:hover::before {
    opacity: 1;
    transform: rotate(45deg) scale(0.8);
}

.action-hover:hover {
    transform: translateY(-5px) scale(1.009);
    box-shadow: 0 20px 40px var(--shadow-dark), 0 0 30px rgba(184, 134, 11, 0.4);
    border-color: var(--burnished-gold);
}

.action-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(184, 134, 11, 0.5));
}

.action-title {
    font-size: 17px;
    color: var(--deep-gold);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px var(--shadow-dark);
}

.action-description {
    color: var(--dark-parchment);
    font-style: italic;
    line-height: 1.5;
    font-size: 12px;
    position: relative;
    z-index: 2;
}

.notice {
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 8px;
    border-left-width: 5px;
    border-left-style: solid;
}

    .notice h3 {
        margin-top: 0;
        color: var(--parchment);
    }

.notice-primary {
    border-left-color: var(--royal-purple);
    background-color: rgba(74, 26, 74, 0.2);
}

.notice-success {
    border-left-color: var(--royal-purple);
    background-color: rgba(45, 80, 22, 0.2);
}

.notice-warning {
    border-left-color: var(--burnished-gold);
    background-color: rgba(184, 134, 11, 0.2);
}

.notice-danger {
    border-left-color: var(--burgundy);
    background-color: rgba(114, 47, 55, 0.2);
}

@media (max-width: 768px) {
    .main-container {
        padding: 2rem 1rem;
    }

    .welcome-title {
        font-size: 2.5rem;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .campaign-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

.footer {
    background: linear-gradient(to bottom, rgba(44, 24, 16, 0.95) 0%, rgba(44, 24, 16, 0.4) 100% );
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow-dark), inset 0 1px 0 rgba(184, 134, 11, 0.2);
    padding: 1rem 2rem;
    position: relative;
    z-index: 10;
    bottom: 0;
    left: 0;
    right: 0;
}

    .footer::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(90deg, transparent 0%, var(--deep-gold) 20%, var(--burnished-gold) 50%, var(--deep-gold) 80%, transparent 100% );
    }

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-content p {
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 30px;
}

    .footer-links a {
        margin-left: 20px;
    }

.stranger {
    display: none;
}

.autheticated {
    display: none;
}

.tooltip-container {
    position: relative;
    display: inline-block;
}

.tooltip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center; 
    margin-left: 0.5rem;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--deep-gold), var(--burnished-gold));
    color: var(--ink-dark);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    border: 2px solid var(--burgundy);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    vertical-align: middle;
}

    .tooltip-icon:hover {
        background: linear-gradient(135deg, var(--burnished-gold), var(--deep-gold));
        box-shadow: 0 0 10px var(--glow-gold);
        transform: scale(1.1);
    }

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 99999;
    bottom: auto;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    background-image: url("../assets/background/parchment.001.webp");
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--ink-dark);
    text-align: left;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    width: auto;
    min-width: 250px;
    max-width: 350px;
    height: auto;
    min-height: unset;
    max-height: unset; 
    border: 3px solid var(--deep-gold);
    box-shadow: 0 10px 30px var(--shadow-dark), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.2), 0 0 20px var(--glow-gold);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: normal;
    text-shadow: none;
    transition: all 0.3s ease;
    pointer-events: none;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
    display: block;
}

.tooltip-icon:hover + .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip-container .tooltip {
    top: auto;
}

.tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--deep-gold) transparent transparent transparent;
}

.tooltip::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--parchment) transparent transparent transparent;
    z-index: 10000;
}

.tooltip-container.tooltip-below .tooltip {
    bottom: auto;
    top: calc(100% + 40px);
}

    .tooltip-container.tooltip-below .tooltip::after {
        top: -16px;
        border-color: transparent transparent var(--deep-gold) transparent;
    }

    .tooltip-container.tooltip-below .tooltip::before {
        top: -10px;
        border-color: transparent transparent var(--parchment) transparent;
    }

.tooltip-container.tooltip-left .tooltip {
    left: 0;
    transform: translateX(0);
}

    .tooltip-container.tooltip-left .tooltip::after,
    .tooltip-container.tooltip-left .tooltip::before {
        left: 2rem;
    }

.tooltip-container.tooltip-right .tooltip {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

    .tooltip-container.tooltip-right .tooltip::after,
    .tooltip-container.tooltip-right .tooltip::before {
        left: 50%;
        margin-left: -8px;
    }

    .tooltip-container.tooltip-right .tooltip::before {
        margin-left: -5px;
    }

.tooltip strong {
    color: var(--burgundy);
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    display: block;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .tooltip {
        min-width: 200px;
        max-width: 280px;
        font-size: 0.85rem;
        padding: 0.8rem 1rem;
        position: absolute;
        z-index: 9999;
    }

    .tooltip-container .tooltip {
        bottom: calc(100% + 35px);
    }

    .tooltip-container.tooltip-below .tooltip {
        top: calc(100% + 35px);
    }

    .tooltip-icon {
        width: 16px;
        height: 16px;
        font-size: 11px;
        line-height: 16px;
    }
}

@media (max-width: 480px) {
    .tooltip {
        min-width: 180px;
        max-width: 250px;
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        position: absolute;
    }

    .tooltip-container .tooltip {
        bottom: calc(100% + 30px);
    }

    .tooltip-container.tooltip-below .tooltip {
        top: calc(100% + 30px);
    }

    .tooltip::after,
    .tooltip::before {
        left: 50%;
        margin-left: -8px;
    }

    .tooltip::before {
        margin-left: -5px;
    }
}

.auth-state-unresolved {
    opacity: 0;
}

.nav-auth {
    position: relative;
    transition: opacity 0.3s ease-in-out;
}

.nav-auth .authenticated {
    display: flex !important;
    align-items: center;
    gap: 15px;
}

.profile-dropdown {
    position: relative;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--parchment);
}

.profile-toggle .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--deep-gold);
    object-fit: cover;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background-image: url("../assets/background/parchment.001.webp");
    border: 2px solid var(--deep-gold);
    border-radius: 10px;
    min-width: 200px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    z-index: 100;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--ink-dark);
    text-decoration: none;
    transition: background-color 0.2s;
}

.dropdown-menu a:hover {
    background-color: var(--dark-parchment);
    color: var(--burgundy);
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--dark-parchment);
}

::-webkit-scrollbar-thumb {
    background-color: var(--deep-gold);
    border-radius: 10px;
    border: 2px solid var(--dark-parchment);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--burnished-gold);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--deep-gold) var(--dark-parchment);
}

.form-group label:not(.public-switch-label) {
    display: block;
    font-size: 1.1rem;
    color: var(--ink-dark);
    margin-bottom: 0.5rem;
}

.public-switch-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: auto;
}

.switch-label-text {
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.switch-label-text.private {
    color: var(--ink-dark);
}

.switch-label-text.public {
    color: var(--ink-medium);
}

.thematic-switch {
    position: relative;
    display: inline-block;
    width: 80px;
    height: 40px;
    margin: 0 1rem;
}

.thematic-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-track {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--ink-medium);
    border-radius: 20px;
    border: 2px solid var(--aged-paper);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
    transition: background-color 0.4s ease;
}

.switch-thumb {
    position: absolute;
    width: 32px;
    height: 32px;
    top: 2px;
    left: 4px;
    background: linear-gradient(to bottom, var(--burnished-gold), var(--deep-gold));
    border-radius: 50%;
    border: 1px solid var(--aged-paper);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.3);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--ink-dark);
    overflow: hidden; 
}

.switch-thumb .fas {
    position: absolute;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.switch-thumb .fa-globe {
    opacity: 0;
    transform: scale(0.5);
}

.thematic-switch input:checked + .switch-track .switch-thumb {
    transform: translateX(40px);
}

.thematic-switch input:checked + .switch-track {
    background-color: #2E8B57; 
}

.thematic-switch input:checked ~ .switch-label-text.private {
    color: var(--ink-medium);
}

.thematic-switch input:checked ~ .switch-label-text.public {
    color: var(--ink-dark);
}

.thematic-switch input:checked + .switch-track .switch-thumb .fa-lock {
    opacity: 0;
    transform: scale(0.5);
}

.thematic-switch input:checked + .switch-track .switch-thumb .fa-globe {
    opacity: 1;
    transform: scale(1);
}

#welcome-card .card-body {
    text-align: center;
    padding-top: 1rem;
}

#welcome-card .button-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.notification-dropdown {
    position: relative;
}

.notification-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--parchment);
    font-size: 1.2rem;
    position: relative;
    padding: 10px;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background-color: var(--burgundy);
    border-radius: 10px;
    border: 2px solid var(--aged-paper);
    display: none;
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--parchment);
    line-height: 14px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.notification-menu {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background-image: url("../assets/background/parchment.001.webp");
    border: 2px solid var(--deep-gold);
    border-radius: 10px;
    min-width: 300px;
    max-width: 350px;
    box-shadow: 0 10px 30px var(--shadow-dark);
    z-index: 100;
    overflow: hidden;
    max-height: 400px;
    flex-direction: column;
}

.notification-menu.show {
    display: flex;
}

.notification-header, .notification-footer {
    padding: 10px 15px;
    background-color: rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--aged-paper);
    text-align: center;
    font-weight: bold;
    color: var(--ink-dark);
}

.notification-footer {
    border-top: 1px solid var(--aged-paper);
    border-bottom: none;
}

.notification-footer a {
    display: inline;
    padding: 0;
    color: var(--royal-purple);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.notification-footer a:hover {
    color: var(--burgundy);
    background-color: transparent;
}

.notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
}

.notification-list li {
    padding: 15px;
    border-bottom: 1px solid var(--aged-paper);
    cursor: pointer;
    transition: background-color 0.2s;
    color: var(--ink-medium);
}

.notification-list li:last-child {
    border-bottom: none;
}

.notification-list li:hover {
    background-color: var(--dark-parchment);
}

.notification-list li.unread {
    background-color: rgba(184, 134, 11, 0.1);
    font-weight: bold;
    color: var(--ink-dark);
}

.notification-list .no-notifications {
    padding: 20px;
    text-align: center;
    color: var(--ink-medium);
    font-style: italic;
    cursor: default;
}

.notification-list .no-notifications:hover {
    background-color: transparent;
}

.notification-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-content {
    flex: 1;
}

.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.notification-actions button {
    flex: 1;
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
}

.notification-actions button:active {
    transform: scale(0.98);
}

.btn-accept {
    background-color: var(--deep-gold);
    color: var(--ink-dark);
}

.btn-accept:hover {
    background-color: var(--burnished-gold);
}

.btn-decline {
    background-color: var(--ink-light);
    color: var(--ink-dark);
}

.btn-decline:hover {
    background-color: var(--aged-paper);
}
