/* Gothic Theme Base Styles */
body {
    background-color: #0a0a0a;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23222222' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: #d8d8d8;
    font-family: 'EB Garamond', Georgia, serif;
    padding-top: 64px; /* Height of your navigation bar */
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Behind the existing background */
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0000 40%, #0a0a0a 100%);
    pointer-events: none;
}

/* Add a subtle texture overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Between the gradient and content */
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h-40V0h40v40z' fill='%23000000' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

/* Typography */
.gothic-title {
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 0.05em;
}

/* Enhanced title for more prominence */
.gothic-title-enhanced {
    text-shadow: 0 0 10px rgba(110, 11, 20, 0.7), 
                 0 0 20px rgba(110, 11, 20, 0.5),
                 0 0 30px rgba(110, 11, 20, 0.3);
    letter-spacing: 0.08em;
    font-weight: 700;
    animation: title-pulse 3s infinite alternate;
    position: relative;
}

@keyframes title-pulse {
    0% {
        text-shadow: 0 0 10px rgba(110, 11, 20, 0.7), 
                    0 0 20px rgba(110, 11, 20, 0.5);
    }
    100% {
        text-shadow: 0 0 15px rgba(110, 11, 20, 0.8), 
                    0 0 25px rgba(110, 11, 20, 0.6),
                    0 0 35px rgba(110, 11, 20, 0.4);
    }
}

/* Enhanced border for main content */
.gothic-enhanced-border {
    position: relative;
    border: 3px double #4a3636;
    box-shadow: 0 0 15px rgba(110, 11, 20, 0.3),
                inset 0 0 15px rgba(110, 11, 20, 0.2);
}

.gothic-enhanced-border::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    bottom: -2px;
    left: -2px;
    border: 1px solid #6e0b14;
    pointer-events: none;
    clip-path: polygon(
        0% 5%, 5% 0%, 95% 0%, 100% 5%,
        100% 95%, 95% 100%, 5% 100%, 0% 95%
    );
}

.gothic-enhanced-border::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    bottom: -8px;
    left: -8px;
    border: 1px dashed rgba(110, 11, 20, 0.4);
    pointer-events: none;
    opacity: 0.7;
    animation: border-flicker 6s infinite alternate;
}

@keyframes border-flicker {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

/* Layout Components */
.gothic-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.gothic-navbar {
    border-bottom: 1px solid #333;
    background-color: rgba(10, 10, 10, 0.95);
}

.gothic-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Card hover effects */
.gothic-card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    border-color: #6e0b14;
}

/* Enhanced Form Elements */
.gothic-input {
    color: #ffffff !important; /* Brighter text */
    background-color: #1a1a1a !important; /* Darker background */
    border-color: #3a3a3a !important; /* Slightly lighter border */
    transition: all 0.3s ease;
    padding: 0.5rem 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gothic-input:focus {
    border-color: #6e0b14 !important;
    box-shadow: 0 0 0 2px rgba(110, 11, 20, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    outline: none;
}

.gothic-input::placeholder {
    color: #666666 !important; /* Darker placeholder text */
}

/* Global form element overrides */
input, textarea, select {
    color: #ffffff !important;
    background-color: #1a1a1a !important;
    border-color: #3a3a3a !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #6e0b14 !important;
    box-shadow: 0 0 0 2px rgba(110, 11, 20, 0.25) !important;
}

/* Specific styling for checkbox and radio inputs */
input[type="checkbox"], input[type="radio"] {
    background-color: #1a1a1a !important;
    border-color: #3a3a3a !important;
}

input[type="checkbox"]:checked, input[type="radio"]:checked {
    background-color: #6e0b14 !important;
    border-color: #6e0b14 !important;
}

/* Dropdown styling */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 0.5rem center !important;
}

/* Enhanced Button Styles */
.gothic-btn {
    background-color: #6e0b14;
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid #8c0e1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.gothic-btn:hover {
    background-color: #8c0e1a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.gothic-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced Gothic Buttons - New Styles */
.gothic-button {
    background-color: #6e0b14;
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border: 1px solid #8c0e1a;
    border-radius: 0.25rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.gothic-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, 
                rgba(255, 255, 255, 0.1), 
                rgba(255, 255, 255, 0));
    border-radius: 0.25rem 0.25rem 0 0;
}

.gothic-button::after {
    content: '';
    position: absolute;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gothic-button:hover {
    background-color: #8c0e1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.gothic-button:hover::after {
    opacity: 1;
}

.gothic-button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Secondary button */
.gothic-button-secondary {
    background-color: #333333;
    border-color: #444444;
}

.gothic-button-secondary:hover {
    background-color: #444444;
}

/* Danger button */
.gothic-button-danger {
    background-color: #6e0b14;
    border-color: #8c0e1a;
}

.gothic-button-danger:hover {
    background-color: #8c0e1a;
}

/* Add ornamental corners to buttons */
.gothic-button-ornate {
    position: relative;
}

.gothic-button-ornate::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 10px;
    height: 10px;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 2px 0 0 0;
}

.gothic-button-ornate::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 0 2px 0;
}

/* Pulsing effect for primary actions */
.gothic-button-pulse {
    animation: button-pulse 2s infinite;
}

@keyframes button-pulse {
    0% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 
                    inset 0 1px 0 rgba(255, 255, 255, 0.1),
                    0 0 0 0 rgba(110, 11, 20, 0.7);
    }
    70% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 
                    inset 0 1px 0 rgba(255, 255, 255, 0.1),
                    0 0 10px 5px rgba(110, 11, 20, 0);
    }
    100% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3), 
                    inset 0 1px 0 rgba(255, 255, 255, 0.1),
                    0 0 0 0 rgba(110, 11, 20, 0);
    }
}

/* Link animations */
.gothic-link {
    position: relative;
    color: #d1d1d1;
    transition: all 0.3s ease;
}

.gothic-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #6e0b14;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.gothic-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(110, 11, 20, 0.5);
}

.gothic-link:hover::after {
    width: 100%;
    box-shadow: 0 0 8px rgba(110, 11, 20, 0.7);
}

/* Decorative Elements */
.bg-gothic-charcoal {
    background-color: #1a1a1a;
    position: relative;
}

.bg-gothic-charcoal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px inset #906f6f;
    pointer-events: none;
}

/* Gothic divider */
.gothic-divider {
    position: relative;
    height: 30px;
    margin: 2rem 0;
}

.gothic-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #6e0b14, transparent);
}

.gothic-divider::after {
    content: '✧';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1a1a1a;
    color: #6e0b14;
    padding: 0 1rem;
}

/* Enhanced Sticky Navigation Styles */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000; 
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(20, 20, 20, 0.9));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid #6e0b14;
    transition: all 0.3s ease;
}

.sticky-nav::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(110, 11, 20, 0.7), transparent);
}

/* Logo animation */
.nav-logo {
    position: relative;
    transition: all 0.3s ease;
}

.nav-logo:hover {
    text-shadow: 0 0 10px rgba(110, 11, 20, 0.7), 0 0 20px rgba(110, 11, 20, 0.5);
    transform: scale(1.05);
}

/* Nav links with animation */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
    color: #d1d1d1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #6e0b14;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(110, 11, 20, 0.5);
}

.nav-link:hover::after {
    width: 100%;
    box-shadow: 0 0 8px rgba(110, 11, 20, 0.7);
}

/* Mobile menu animation */
.mobile-menu-button {
    transition: all 0.3s ease;
}

.mobile-menu-button:hover {
    background-color: rgba(110, 11, 20, 0.2);
    transform: scale(1.05);
}

/* Dropdown menu animation */
.dropdown-menu {
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(110, 11, 20, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.dropdown-item {
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(110, 11, 20, 0.2);
    transform: translateX(5px);
}

/* Content container with proper padding for fixed nav */
.content-container {
    padding-top: 4rem; /* Height of the navigation */
    width: 100%;
}

/* Decorative elements for the nav */
.nav-decoration {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(110, 11, 20, 0.7);
    box-shadow: 0 0 10px rgba(110, 11, 20, 0.5);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.sticky-nav:hover .nav-decoration {
    opacity: 1;
}

.nav-decoration-1 {
    top: 10px;
    left: 10px;
    animation: pulse 3s infinite alternate;
}

.nav-decoration-2 {
    top: 10px;
    right: 10px;
    animation: pulse 3s infinite alternate-reverse;
}

/* Autofill Handling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0px 1000px #1a1a1a inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Custom Gothic Theme Colors */
.text-gothic-text {
    color: #d8d8d8;
}

.text-gothic-muted {
    color: #888888;
}

.text-gothic-highlight {
    color: #6e0b14;
}

.bg-gothic-black {
    background-color: #0a0a0a;
}

.bg-gothic-darkgray {
    background-color: #1a1a1a;
}

.bg-gothic-accent {
    background-color: #6e0b14;
}

.border-gothic-border {
    border-color: #333333;
}

.border-gothic-highlight {
    border-color: #6e0b14;
}

/* Form-specific styles */
.rounded-md {
    border-radius: 0.375rem;
}

/* Checkbox styling */
input[type="checkbox"] {
    accent-color: #6e0b14;
}

/* Focus states */
.focus\:border-gothic-highlight:focus {
    border-color: #6e0b14;
}

.focus\:ring:focus {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus\:ring-gothic-highlight:focus {
    --tw-ring-color: rgba(110, 11, 20, 0.5);
}

.focus\:ring-opacity-25:focus {
    --tw-ring-opacity: 0.25;
}

/* Typography enhancements */
.prose {
    color: #d8d8d8;
}

.prose h1, .prose h2, .prose h3, .prose h4 {
    font-family: 'Cinzel Decorative', serif;
    color: #d8d8d8;
}

.prose p {
    margin-bottom: 1.25em;
}

.prose a {
    color: #6e0b14;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.prose a:hover {
    color: #9a0f1c;
}

.prose ul {
    list-style-type: none;
    padding-left: 0;
}

/* Hover states for buttons */
.hover\:bg-gothic-highlight:hover {
    background-color: #6e0b14;
}

.hover\:text-gothic-text:hover {
    color: #d8d8d8;
}

.transition-colors {
    transition-property: color, background-color, border-color;
}

.duration-300 {
    transition-duration: 300ms;
}

/* First letter styling */
.prose p:first-of-type::first-letter {
    font-size: 1.5em;
    font-weight: bold;
    color: #6e0b14;
    float: left;
    line-height: 1;
    margin-right: 0.1em;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

/* Responsive spacing */
@media (max-width: 640px) {
    .prose h1 {
        font-size: 1.75rem;
    }
    
    .prose h2 {
        font-size: 1.5rem;
    }
}

.gothic-activity-item {
    position: relative;
    margin-bottom: 2rem;
    padding: 1.25rem;
    background-color: rgba(26, 26, 26, 0.8);
    border: 1px solid #333;
    border-radius: 0.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
}

.gothic-activity-item:hover {
    transform: translateX(5px);
    border-color: #6e0b14;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(110, 11, 20, 0.3);
}

.gothic-activity-item::before {
    content: '';
    position: absolute;
    left: -2.5rem;
    top: 1.5rem;
    width: 1rem;
    height: 1rem;
    background-color: #1a1a1a;
    border: 2px solid #6e0b14;
    border-radius: 50%;
    box-shadow: 0 0 0 4px #0a0a0a, 0 0 10px rgba(110, 11, 20, 0.5);
    z-index: 1;
}

.gothic-activity-item:hover::before {
    background-color: #6e0b14;
    box-shadow: 0 0 0 4px #0a0a0a, 0 0 15px rgba(110, 11, 20, 0.7);
}

.gothic-activity-time {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.gothic-activity-content {
    position: relative;
}

.gothic-activity-user {
    font-weight: 600;
    color: #d8d8d8;
}

.gothic-activity-action {
    color: #6e0b14;
}

.gothic-activity-detail {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(110, 11, 20, 0.2);
    font-size: 0.95rem;
}

.gothic-activity-icon {
    position: absolute;
    right: 1rem;
    top: 1rem;
    opacity: 0.2;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.gothic-activity-item:hover .gothic-activity-icon {
    opacity: 0.6;
    transform: scale(1.2);
    color: #6e0b14;
}

/* Activity feed types */
.gothic-activity-registration .gothic-activity-icon {
    color: #6e0b14;
}

.gothic-activity-post .gothic-activity-icon {
    color: #b8860b;
}

.gothic-activity-comment .gothic-activity-icon {
    color: #4a6741;
}

.gothic-activity-image .gothic-activity-icon {
    color: #4b0082;
}

.gothic-activity-music .gothic-activity-icon {
    color: #483d8b;
}

/* Feed header */
.gothic-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #333;
}

.gothic-feed-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.5rem;
    letter-spacing: 0.05em;
    color: #d8d8d8;
    position: relative;
}

.gothic-feed-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(to right, #6e0b14, transparent);
}

.gothic-feed-filter {
    display: flex;
    gap: 0.5rem;
}

.gothic-feed-filter-btn {
    background-color: transparent;
    color: #888;
    border: 1px solid #333;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.gothic-feed-filter-btn:hover, 
.gothic-feed-filter-btn.active {
    background-color: rgba(110, 11, 20, 0.2);
    color: #d8d8d8;
    border-color: #6e0b14;
}

/* Empty feed state */
.gothic-feed-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #888;
    font-style: italic;
    border: 1px dashed #333;
    border-radius: 0.25rem;
    margin: 2rem 0;
}

.gothic-feed-empty-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.gothic-cancel-reply-btn {
    background-color: #1a1a1a;
    color: #888;
    border: 1px solid #333;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gothic-cancel-reply-btn:hover {
    background-color: #000;
    color: #c41e3a;
    border-color: #c41e3a;
    box-shadow: 0 0 8px rgba(196, 30, 58, 0.3);
}

.gothic-cancel-reply-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(196, 30, 58, 0.4);
}

/* Add a subtle animation */
@keyframes pulse-border {
    0% { border-color: #333; }
    50% { border-color: #c41e3a; }
    100% { border-color: #333; }
}

.gothic-cancel-reply-btn:hover {
    animation: pulse-border 2s infinite;
}

/* Notification System Styling - UPDATED with fixes */
.gothic-notifications-dropdown {
    position: relative;
}

.gothic-notifications-btn {
    transition: all 0.3s ease;
}

.gothic-notifications-btn:hover {
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(110, 11, 20, 0.5);
}

.gothic-notification-badge {
    background-color: #6e0b14;
    color: #ffffff !important; /* Ensure text is white, not black */
    box-shadow: 0 0 10px rgba(110, 11, 20, 0.7);
    animation: pulse-notification 2s infinite;
}

@keyframes pulse-notification {
    0% {
        box-shadow: 0 0 5px rgba(110, 11, 20, 0.7);
    }
    50% {
        box-shadow: 0 0 15px rgba(110, 11, 20, 0.9);
    }
    100% {
        box-shadow: 0 0 5px rgba(110, 11, 20, 0.7);
    }
}

.gothic-notifications-menu {
    background-color: #1a1a1a;
    border: 1px solid #333;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(110, 11, 20, 0.3);
    transform-origin: top right;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    width: 350px !important; /* Make dropdown wider to fit content */
}

/* Add this rule to work with the existing JavaScript's hidden class */
.gothic-notifications-menu:not(.hidden) {
    animation: menu-appear 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes menu-appear {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Fix the header styling */
.gothic-notifications-menu .p-3.border-b.border-gothic-dark {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gothic-notifications-menu h3 {
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 0.05em;
    margin: 0;
}

.gothic-notifications-menu a.gothic-link {
    font-family: 'Cinzel Decorative', serif;
    letter-spacing: 0.05em;
    white-space: nowrap;
    margin-left: 1rem;
    font-size: 0.85rem;
}

/* Fix the duplicate empty message issue */
#notifications-empty {
    display: none;
}

#notifications-empty.show {
    display: block;
}

/* Hide the empty message in notification-items.blade.php when it's duplicated */
#notifications-content .gothic-notification-empty {
    display: none !important;
}

/* Only show the empty message when the content is actually empty */
#notifications-content:empty + #notifications-empty {
    display: block !important;
}

.gothic-notifications-list {
    scrollbar-width: thin;
    scrollbar-color: #6e0b14 #1a1a1a;
}

.gothic-notifications-list::-webkit-scrollbar {
    width: 6px;
}

.gothic-notifications-list::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.gothic-notifications-list::-webkit-scrollbar-thumb {
    background-color: #6e0b14;
    border-radius: 6px;
}

/* Individual notification styling */
.gothic-notification-item {
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.gothic-notification-item:hover {
    background-color: rgba(110, 11, 20, 0.1);
}

.gothic-notification-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: transparent;
    transition: all 0.3s ease;
}

.gothic-notification-item:hover::after {
    background-color: #6e0b14;
    box-shadow: 0 0 10px rgba(110, 11, 20, 0.7);
}

.gothic-notification-unread {
    background-color: rgba(110, 11, 20, 0.1);
}

.gothic-notification-unread::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #6e0b14;
    box-shadow: 0 0 8px rgba(110, 11, 20, 0.7);
}

.gothic-avatar {
    position: relative;
}

.gothic-avatar::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 1px solid rgba(110, 11, 20, 0.3);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
}

.gothic-notification-item:hover .gothic-avatar::after {
    opacity: 1;
    transform: scale(1.1);
}

/* Empty state and loading state */
.gothic-notification-empty, 
.gothic-notification-loading {
    color: #888;
    font-style: italic;
    text-align: center;
    padding: 1.5rem 1rem;
}

.gothic-notification-loading i {
    color: #6e0b14;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mark all as read button */
.gothic-mark-all-btn {
    background-color: rgba(26, 26, 26, 0.8);
    border: 1px solid #333;
    color: #d8d8d8;
    font-size: 0.875rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.gothic-mark-all-btn:hover {
    background-color: rgba(110, 11, 20, 0.2);
    border-color: #6e0b14;
    color: #ffffff;
}


/* Ensure the notifications content wrapper has proper structure */
.notifications-content-wrapper {
    min-height: 50px; /* Give it some minimum height */
}

/* Ensure the empty state is properly hidden and shown */
.gothic-notification-empty {
    display: none;
}

.gothic-notification-empty:not(.hidden) {
    display: block;
}

/* Fix the notification badge text color to be white */
.gothic-notification-badge {
    color: #ffffff !important;
}

/* Ensure proper spacing in the notifications dropdown */
.gothic-notifications-list {
    position: relative;
}

/* Make sure loading indicator is properly positioned */
.gothic-notification-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(26, 26, 26, 0.8);
    z-index: 5;
}

.gothic-notification-loading.hidden {
    display: none;
}
