﻿/* site.css */

/* 
  DARK + GOLD THEME
  Tweaked for a more immersive look
*/
:root {
    --primary-bg: #1c1c1c; /* Main background */
    --secondary-bg: #2a2a2a; /* Lighter dark background */
    --accent-color: #d4af37; /* Gold accent */
    --accent-hover: #ffdd75; /* Lighter gold for hover states */
    --text-color: #f0f0f0; /* Light text */
    --muted-text-color: #bfbfbf; /* Muted text */
    --highlight-color: #ffaa00; /* Optional highlight (orange-gold) */

    --heading-font: 'Cinzel', serif;
    --body-font: 'Open Sans', sans-serif;
    --transition-speed: 0.3s;
}
/* Applies to most scrollable containers and browser scrollbars */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #1e1e1e; /* Dark grey track */
}

::-webkit-scrollbar-thumb {
    background-color: #d4af37; /* Gold thumb */
    border-radius: 10px;
    border: 2px solid #1e1e1e; /* Makes it look inset */
}

    ::-webkit-scrollbar-thumb:hover {
        background-color: #f5c842;
    }
/* Scrollbar colors for Firefox */
* {
    scrollbar-color: #d4af37 #1e1e1e;
    scrollbar-width: thin;
}

.scrollable-panel {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

    .scrollable-panel::-webkit-scrollbar {
        width: 8px;
    }

    .scrollable-panel::-webkit-scrollbar-thumb {
        background-color: #d4af37;
        border-radius: 4px;
    }

::-webkit-scrollbar-thumb {
    background-image: linear-gradient(45deg, #d4af37, #a8892f);
}
/* Standard WebKit Scrollbar Styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-track {
    background: #1e1e1e;
    border-radius: 10px;
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(145deg, #cfa93d, #a7842c);
    border-radius: 10px;
    border: 2px solid #1e1e1e;
    transition: background 0.3s ease, transform 0.3s ease;
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(145deg, #f6d76f, #c8a33a);
        transform: scale(1.1);
    }
* {
    scrollbar-color: #cfa93d #1e1e1e;
    scrollbar-width: thin;
}
.custom-scroll-area::-webkit-scrollbar-thumb {
    background: #d4af37;
    transition: background-color 0.3s ease-in-out;
}

    .custom-scroll-area::-webkit-scrollbar-thumb:hover {
        background: #f5c842;
    }


/* Base styles */
* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    background: var(--primary-bg);
    color: var(--text-color);
    overflow-x: hidden; /* No horizontal scroll bars */
    scroll-behavior: smooth; /* Smooth scrolling for anchor links */
    opacity: 1 !important; /* Ensures no fade effect on the entire body */
    transition: none !important;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

    a:hover {
        color: var(--accent-hover);
        text-decoration: underline;
    }
.fantasy-footer {
    background-color: #1a1a1a;
    color: #dcdcdc;
    font-family: 'Cinzel', serif;
}

.footer-link {
    color: #d4af37;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

    .footer-link:hover {
        color: #fff;
        text-shadow: 0 0 5px #d4af37;
    }

/* 🔥 Animated Glowing Heart */
.animated-heart {
    color: #ff4d4d;
    animation: pulseHeart 1.8s ease-in-out infinite;
}

@keyframes pulseHeart {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 8px #ff4d4d;
    }

    50% {
        transform: scale(1.25);
        text-shadow: 0 0 12px #ff4d4d;
    }
}


/* NAVBAR OVERRIDES */
.navbar {
    background-color: var(--secondary-bg) !important;
    border-bottom: 1px solid var(--accent-color);
    min-height: 60px; /* Increased height */
    padding: 10px 20px; /* Adjust padding for balance */
}

.nav-link, .navbar-brand {
    color: var(--accent-color) !important;
    transition: color var(--transition-speed);
}

    .nav-link:hover, .navbar-brand:hover {
        color: var(--accent-hover) !important;
    }

/* FOOTER */
footer {
    background-color: var(--secondary-bg);
    padding: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted-text-color);
    position: relative;
    bottom: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
}


/* HEADINGS - MEDIEVAL LOOK */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--accent-color);
    letter-spacing: 0.8px;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* BUTTONS */
.btn-gold {
    background-color: var(--accent-color);
    color: #1c1c1c;
    border: none;
    padding: 0.6rem 1.2rem;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
    font-weight: 600;
    border-radius: 4px;
}

    .btn-gold:hover {
        background-color: var(--accent-hover);
        transform: translateY(-2px);
    }

/* PARALLAX HERO SECTION */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 70vh; /* or whatever height you prefer */
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(28,28,28,0.6), rgba(28,28,28,0.6)), url("/img/pheonix.png");
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
    background-position: center;
    background-repeat: no-repeat;
    animation: fadeInHero 1.2s ease forwards;
    padding: 100px 20px;
}

    .hero-section h1 {
        font-size: 4rem;
        margin-bottom: 0.5rem;
    }

    .hero-section p {
        font-size: 1.3rem;
        max-width: 800px;
        margin: 0 auto;
        color: var(--text-color);
    }

/* HERO ANIMATION */
@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FANTASY BORDER / DECORATION (OPTIONAL) */
.fantasy-border {
    border: 2px solid var(--accent-color);
    padding: 1rem;
    position: relative;
    border-radius: 8px;
}

    .fantasy-border:before,
    .fantasy-border:after {
        content: "";
        position: absolute;
        width: 30px;
        height: 30px;
        border: 2px solid var(--accent-color);
        border-radius: 50%;
    }

    .fantasy-border:before {
        top: -15px;
        left: -15px;
    }

    .fantasy-border:after {
        bottom: -15px;
        right: -15px;
    }

/* SCROLL REVEAL CLASSES */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

    .fade-in-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* CARDS */
.dark-card {
    background-color: var(--secondary-bg);
    border: 1px solid #3a3a3a;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}

    .dark-card:hover {
        box-shadow: 0 0 15px rgba(212,175,55, 0.5); /* gold glow */
        transform: translateY(-5px);
    }

    .dark-card .fa {
        font-size: 2.5rem;
        margin-bottom: 15px;
        color: var(--accent-color);
    }

/* ANIMATE ON HOVER FOR IMAGES (OPTIONAL) */
.img-zoom:hover {
    transform: scale(1.05) rotate(1deg);
    transition: 0.4s;
}


.login-bg {
    /* A dark overlay plus background image */
    background: linear-gradient(rgba(28,28,28,0.6), rgba(28,28,28,0.6)), url('/img/reborn.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Example fade-in class (if not already in your site.css) */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

    .fade-in-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }


.register-bg {
    background: linear-gradient(rgba(28,28,28,0.6), rgba(28,28,28,0.6)), url('/img/reborn.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dark-card {
    background-color: var(--secondary-bg); /* e.g., a dark grey */
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.btn-gold {
    background-color: var(--accent-color);
    color: #1c1c1c;
    border: none;
    padding: 12px 20px;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

    .btn-gold:hover {
        background-color: #ffdd75;
    }

.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

    .fade-in-on-scroll.visible {
        opacity: 1;
        transform: translateY(0);
    }


/* Overall Manage Account Container */
.manage-account {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background-image: url('/img/ashes.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

    /* Inner container to add spacing around cards (if desired) */
    .manage-account .container {
        padding: 30px 15px;
    }

/* Manage Navigation Card */
.manage-nav-card {
    max-width: 500px;
    margin: auto;
    margin-bottom: 30px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--secondary-bg); /* e.g., a dark grey */
}

/* Manage Section Cards: Smaller width with grid spacing and hover effect */
.manage-section-card {
    max-width: 500px;
    margin: auto;
    margin-bottom: 30px;
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--secondary-bg); /* e.g., a dark grey */
}

    .manage-section-card:hover {
        transform: scale(1.02);
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    }

    /* Card Body: Use a dark overlay color */
    .manage-section-card .card-body {
        background-color: var(--secondary-bg); /* e.g., a dark grey */
        padding: 20px;
    }

/* Manage Menu Navigation */
.manage-menu {
    margin-top: 20px;
}

    .manage-menu .nav-link {
        font-weight: bold;
        color: var(--accent-color);
        padding: 10px;
        transition: color 0.3s ease;
    }

        .manage-menu .nav-link:hover,
        .manage-menu .nav-link.active {
            color: #ffdd75;
        }

/* Profile Picture Container */
.profile-picture-container {
    margin-bottom: 20px;
    text-align: center;
}

.profile-picture {
    border-radius: 50%;
    max-height: 180px; /* Larger profile image */
    width: auto;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    animation: fadeInScale 1s ease-out;
}

/* Fire-themed frame using pure CSS */
.fire-frame {
    position: relative;
    border: 4px solid transparent;
    border-radius: 50%;
}

    .fire-frame::before {
        content: "";
        position: absolute;
        top: -6px;
        left: -6px;
        right: -6px;
        bottom: -6px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(255,69,0,0.8) 0%, rgba(255,140,0,0.6) 50%, rgba(255,215,0,0.4) 100%);
        z-index: -1;
        animation: flamePulse 2s linear infinite;
    }

@keyframes flamePulse {
    0% {
        transform: scale(0.95);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(0.95);
        opacity: 0.9;
    }
}

/* Image Upload Container */
.image-upload-container {
    border: 2px dashed var(--accent-color);
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--secondary-bg); /* e.g., a dark grey */
    text-align: center;
}

    .image-upload-container:hover {
        transform: scale(1.02);
        box-shadow: 0 0 10px rgba(212, 175, 55, 0.7);
    }

/* Field Titles (h5) */
h5 {
    margin-bottom: 0.5rem;
    color: #f0f0f0;
}

/* Fade-in and scale animation for profile picture */
@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .manage-account .row {
        flex-direction: column;
    }

    .manage-menu {
        margin-bottom: 20px;
    }
}
.fire-frame {
    border-radius: 50%;
    box-shadow: 0px 0px 15px 5px rgba(255, 165, 0, 0.8);
    animation: flicker 1.5s infinite alternate;
}

@keyframes flicker {
    0% {
        box-shadow: 0px 0px 15px 5px rgba(255, 69, 0, 0.8);
    }

    100% {
        box-shadow: 0px 0px 20px 10px rgba(255, 140, 0, 0.8);
    }
}
.fade-in-success {
    animation: fadeIn 0.8s ease-in-out;
}

.fade-in-error {
    animation: fadeIn 0.8s ease-in-out;
    color: red;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.profile-save-btn:disabled, .password-save-btn:disabled {
    background: linear-gradient(90deg, rgba(255,140,0,1) 0%, rgba(255,69,0,1) 100%);
    cursor: not-allowed;
}

.logout-container {
    height: 100vh;
    background-image: url('/img/ashes.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logout-card {
    background: rgba(20, 20, 20, 0.9);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 0px 15px rgba(255, 140, 0, 0.7);
    max-width: 400px;
    width: 90%;
}

.logout-title {
    color: var(--accent-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.logout-message {
    color: #ddd;
    margin-bottom: 20px;
    font-size: 18px;
}

.logout-btn {
    width: 100%;
    font-size: 18px;
    padding: 10px;
    background: linear-gradient(90deg, rgba(255,140,0,1) 0%, rgba(255,69,0,1) 100%);
    border: none;
    border-radius: 5px;
    color: #1a1a1a;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

    .logout-btn:hover {
        background: linear-gradient(90deg, rgba(255,69,0,1) 0%, rgba(255,140,0,1) 100%);
    }

.return-home {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

    .return-home:hover {
        background: var(--accent-color);
        color: #1a1a1a;
    }

.fade-in-success {
    color: #90ee90;
    animation: fadeIn 1s ease-in-out;
    font-size: 18px;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
.guilds-container {
    max-width: 1100px;
    margin: auto;
    text-align: center;
    padding: 40px;
}

/* Guild Search Bar */
.search-bar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-bar {
    width: 50%;
    max-width: 500px;
    padding: 12px;
    border-radius: 6px;
    background: var(--secondary-bg);
    color: var(--text-color);
    border: 2px solid var(--accent-color);
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
}

    .search-bar::placeholder {
        color: var(--muted-text-color);
        opacity: 0.8;
    }

    .search-bar:focus {
        border-color: var(--accent-hover);
        box-shadow: 0px 0px 12px rgba(255, 215, 0, 0.8);
        background: var(--secondary-bg);
        color: var(--text-color);
    }


.guild-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.guild-card {
    background-color: var(--secondary-bg);
    padding: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .guild-card:hover {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    }

.guild-logo-container {
    margin-bottom: 10px;
}

.guild-logo {
    max-width: 100px;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

.guild-name {
    color: var(--accent-color);
    font-size: 20px;
    margin-bottom: 5px;
}

.guild-description {
    font-size: 14px;
    color: var(--muted-text-color);
    margin-bottom: 10px;
}

.btn-gold {
    background-color: var(--accent-color);
    color: #1c1c1c;
    font-weight: bold;
}

.btn-disabled {
    background-color: #555;
    color: #ccc;
}
/* NAVBAR STYLING */
.fantasy-navbar {
    background: linear-gradient(to right, #1a1a1a, #2a2a2a);
    border-bottom: 2px solid var(--accent-color);
}

.navbar-brand {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color) !important;
    transition: color var(--transition-speed);
}

    .navbar-brand:hover {
        color: var(--accent-hover) !important;
    }

/* NAVIGATION LINK STYLING */
.navbar-nav .nav-link {
    color: var(--text-color);
    padding: 10px 15px;
    transition: color var(--transition-speed), transform var(--transition-speed);
}

    .navbar-nav .nav-link:hover {
        color: var(--accent-hover);
        transform: translateY(-2px);
    }

/* PROFILE DROPDOWN MENU */
.fantasy-dropdown {
    background: var(--secondary-bg);
    border: 1px solid var(--accent-color);
}

    .fantasy-dropdown .dropdown-item {
        color: var(--text-color);
        transition: background 0.3s ease, color 0.3s ease;
    }

        .fantasy-dropdown .dropdown-item:hover {
            background: var(--accent-color);
            color: #1a1a1a;
        }

/* LOGOUT BUTTON */
.logout-btn {
    background: transparent;
    color: var(--text-color);
    border: none;
    width: 100%;
    text-align: left;
}

    .logout-btn:hover {
        background: var(--accent-color);
        color: #1a1a1a;
    }

/* Profile Avatar */
.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.nav-link.dropdown-toggle:hover .profile-avatar {
    transform: scale(1.1);
}


/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(90deg, rgba(255,140,0,1) 0%, rgba(255,69,0,1) 100%);
    color: #1c1c1c;
    border: none;
    padding: 12px;
    font-size: 18px;
    border-radius: 50%;
    box-shadow: 0px 0px 15px rgba(255, 140, 0, 0.7);
    transition: all 0.3s ease-in-out;
    display: none;
    cursor: pointer;
    z-index: 999;
}

    .back-to-top-btn:hover {
        background: linear-gradient(90deg, rgba(255,69,0,1) 0%, rgba(255,140,0,1) 100%);
        transform: scale(1.1);
        box-shadow: 0px 0px 20px rgba(255, 165, 0, 0.9);
    }

    .back-to-top-btn i {
        color: #1a1a1a;
    }

    /* Smooth Fade-in & Fade-out */
    .back-to-top-btn.show {
        display: block;
        animation: fadeIn 0.5s ease-in-out;
    }

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ?? ADMIN DASHBOARD FIXES */
.admin-body {
    display: flex;
    flex-direction: row; /* ? Ensures sidebar and content are side by side */
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--secondary-bg);
    color: var(--accent-color);
    height: 100vh;
    padding: 20px;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
    z-index: 1000; /* ? Ensures it stays above other content */
}

/* ?? Adjust admin content to not be hidden under the navbar */
.admin-content {
    margin-left: 250px;
    padding: 20px;
    padding-top: 80px; /* ? Ensures content starts below navbar */
    flex-grow: 1;
    transition: margin-left 0.3s ease-in-out;
}


    .admin-sidebar.collapsed {
        width: 70px;
    }

    .admin-sidebar .nav-link {
        color: var(--accent-color);
        padding: 10px;
        display: block;
        transition: 0.3s;
    }

        .admin-sidebar .nav-link:hover {
            background: var(--accent-hover);
            color: #000;
        }


.admin-sidebar.collapsed + .admin-content {
    margin-left: 80px;
}
/* Back to Top Button - Themed & Styled */
#backToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(90deg, rgba(255,140,0,1) 0%, rgba(255,69,0,1) 100%);
    color: #1c1c1c;
    border: none;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    font-size: 1.2rem;
}

    #backToTopBtn:hover {
        background: linear-gradient(90deg, rgba(255,69,0,1) 0%, rgba(255,140,0,1) 100%);
        transform: scale(1.1);
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ?? FIX: Sidebar starts below the navigation bar */
.admin-sidebar {
    width: 250px;
    background: var(--secondary-bg);
    color: var(--accent-color);
    height: calc(100vh - 60px); /* ? Sidebar takes full height minus navbar height */
    padding: 20px;
    position: fixed;
    top: 60px; /* ? Starts right below the navbar */
    left: 0;
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

    .admin-sidebar.collapsed {
        width: 70px;
    }

    .admin-sidebar .nav-link {
        color: var(--accent-color);
        padding: 12px 15px;
        display: block;
        transition: all 0.3s ease-in-out;
        font-size: 1.1rem;
        font-weight: bold;
    }

        .admin-sidebar .nav-link:hover {
            background: var(--accent-hover);
            color: #000 !important; /* ? Fixes hover issue */
            transform: translateX(5px);
        }

/* ?? SIDEBAR TOGGLE BUTTON */
.toggle-sidebar-btn {
    display: none;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1001;
}

@media (max-width: 992px) {
    .toggle-sidebar-btn {
        display: block; /* ? Show toggle button only on smaller screens */
    }
}

@media (max-width: 992px) {
    .admin-sidebar {
        left: -250px; /* ? Hidden by default on small screens */
        height: calc(100vh - 60px); /* ? Adjust for navbar */
    }

        .admin-sidebar.open {
            left: 0;
        }

    .admin-content {
        margin-left: 0 !important;
    }
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background-color: #2a2a2a;
    padding: 20px;
    min-height: auto; /* Adjusts to content */
    max-height: 400px; /* Prevents it from being too large */
    border-radius: 10px; /* Optional: Makes it look like a nice card */
}


    .admin-sidebar h3 {
        color: gold;
    }

    .admin-sidebar .nav-link {
        color: white;
        padding: 10px;
        display: block;
        transition: all 0.3s;
    }

        .admin-sidebar .nav-link:hover {
            background-color: gold;
            color: black;
        }

/* Sidebar Fix: Move it below navbar and align it properly */
.admin-sidebar {
    width: 250px;
    background: var(--secondary-bg);
    color: var(--accent-color);
    height: auto; /* ? Adjust to content size */
    max-height: 500px; /* ? Prevents extreme height */
    padding: 20px;
    position: fixed;
    top: 80px; /* ? Ensures it's BELOW the navbar */
    left: 20px; /* ? Moves it slightly to the right */
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5);
}

/* Adjust admin content area to align properly */
.admin-content {
    margin-left: 300px; /* ? Ensures it doesn't overlap with sidebar */
    padding-top: 40px; /* ? Fixes alignment */
}


/* Smooth transition for page changes */
@keyframes fadeInContent {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ?? Fancy Themed Input Fields */
.form-control {
    background-color: #222;
    border: 2px solid gold;
    color: white;
    transition: all 0.3s ease-in-out;
}

    .form-control:focus {
        border-color: #ffaa00;
        box-shadow: 0px 0px 10px rgba(255, 170, 0, 0.8);
        outline: none;
    }

/* ?? Themed Buttons */
.btn {
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.btn-primary {
    background: linear-gradient(to right, #d4af37, #ffcc00);
    border: none;
    color: black;
}

    .btn-primary:hover {
        background: linear-gradient(to right, #ffdd75, #ffaa00);
        transform: scale(1.05);
    }

.btn-danger {
    background: linear-gradient(to right, #8b0000, #ff4500);
    border: none;
    color: white;
}

    .btn-danger:hover {
        background: linear-gradient(to right, #ff6347, #ff0000);
        transform: scale(1.05);
    }

.btn-secondary {
    background: #333;
    border: 2px solid gold;
    color: white;
}

    .btn-secondary:hover {
        background: black;
        transform: scale(1.05);
    }

/* ?? Fancy Checkboxes */
.form-check-input {
    width: 18px;
    height: 18px;
    border: 2px solid gold;
    background-color: #222;
    transition: all 0.3s ease-in-out;
}

    .form-check-input:checked {
        background-color: gold;
        box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
    }

/* ?? Themed Table */
.table {
    background-color: #2a2a2a;
    border: 2px solid gold;
    color: white;
}

    .table th {
        background-color: #1c1c1c;
        color: gold;
    }

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #333;
}

.table-striped tbody tr:nth-of-type(even) {
    background-color: #2a2a2a;
}

.table-hover tbody tr:hover {
    background-color: rgba(255, 170, 0, 0.2);
}
/* FORM STYLING */
.form-control {
    background-color: var(--secondary-bg); /* Dark background */
    color: var(--text-color); /* Light text */
    border: 2px solid var(--accent-color); /* Gold border */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    .form-control:focus {
        border-color: var(--highlight-color); /* Gold highlight */
        box-shadow: 0 0 10px var(--highlight-color); /* Glowing effect */
        background-color: var(--secondary-bg);
        color: var(--text-color);
    }

/* BUTTONS */
.btn-primary {
    background-color: var(--accent-color); /* Gold */
    color: #1c1c1c; /* Dark text */
    border: none;
    font-weight: bold;
    padding: 10px 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-primary:hover {
        background-color: var(--accent-hover); /* Brighter gold */
        transform: scale(1.05);
    }

.btn-secondary {
    background-color: #444; /* Dark grey */
    color: var(--text-color);
    border: 2px solid var(--accent-color);
    font-weight: bold;
    padding: 10px 16px;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

    .btn-secondary:hover {
        background-color: #666;
        transform: scale(1.05);
    }

/* SUCCESS & ERROR MESSAGES */
.alert-success {
    background-color: #2a2a2a; /* Dark background */
    border: 1px solid var(--accent-color); /* Gold border */
    color: var(--text-color);
    font-weight: bold;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
}

.alert-danger {
    background-color: #520000; /* Dark red */
    border: 1px solid #ff4c4c; /* Bright red border */
    color: #ffaaaa; /* Lighter red text */
    font-weight: bold;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
}

/* ROLE CHECKBOX STYLING */
.role-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-check-input {
    background-color: var(--secondary-bg); /* Dark background */
    border: 2px solid var(--accent-color); /* Gold border */
    transition: all 0.3s ease;
}

    .form-check-input:checked {
        background-color: var(--accent-color); /* Gold */
        border-color: var(--highlight-color);
        box-shadow: 0 0 10px var(--highlight-color);
    }

.form-check-label {
    color: var(--text-color); /* Light text */
    font-weight: bold;
}
/* ?? SPACING FOR FORMS */
.form-group {
    margin-bottom: 20px !important; /* Adds space between input fields */
}

button, .btn {
    margin-top: 10px !important; /* Adds space above buttons */
    margin-right: 10px !important; /* Prevents buttons from sticking together */
}

/* ?? BETTER SPACING FOR "Create New User" BUTTON */
.create-user-container {
    margin-bottom: 25px !important; /* Adds spacing below the button */
}

/* ? Ensures spacing between "Create New User" button and messages */
.button-container {
    margin-bottom: 15px;
    margin-top: 10px;
}
/* ========================================== */
/* ?? Role Management Table - Full Redesign  */
/* ========================================== */

/* ? Table Styling */
.fantasy-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #1c1c1c;
    border: 2px solid gold;
}

    /* ? Header Styling */
    .fantasy-table th {
        background-color: #2a2a2a;
        color: gold;
        text-align: center;
        padding: 12px;
        font-weight: bold;
        border-bottom: 2px solid gold;
        white-space: nowrap;
    }

/* ? Sorting Header */
th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    padding-right: 20px; /* ? Leaves space for arrows */
}

    /* ? Sorting Arrows */
    th.sortable .sort-arrow {
        font-size: 14px;
        position: absolute;
        right: 10px;
        color: gold;
        transition: transform 0.2s ease;
    }

    th.sortable.asc .sort-arrow {
        transform: rotate(180deg);
    }

/* ? Table Row Styling */
.fantasy-table tbody tr {
    border-bottom: 1px solid gold !important;
    text-align: center;
}

    /* ? Fix Cell Padding & Alignment */
    .fantasy-table tbody tr td {
        padding: 10px;
        border-top: none !important;
        border-bottom: none !important;
    }

/* ? Fix Role Input Field */
.role-name-input {
    background-color: #222;
    border: 2px solid gold;
    color: white;
    padding: 6px;
    width: 90%;
    text-align: center;
}

/* ? Buttons Row */
.d-flex.align-items-center {
    display: flex;
    justify-content: center;
    gap: 10px;
}

/* ? Small Buttons */
.btn-sm {
    padding: 6px 10px;
    font-size: 14px;
    border-radius: 4px;
}

/* ? Fix View Users Button */
.view-users-btn {
    background-color: var(--secondary-bg);
    color: gold;
    border: 1px solid gold;
    padding: 6px 12px;
    font-size: 14px;
    transition: background 0.3s ease, transform 0.2s ease;
}

    .view-users-btn:hover {
        background-color: var(--accent-hover);
        transform: scale(1.05);
    }

/* ?? User List Modal */
.user-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

.user-modal-content {
    background-color: var(--secondary-bg);
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-height: 500px;
    overflow-y: auto;
    border: 2px solid var(--accent-color);
    text-align: center;
    box-shadow: 0px 0px 15px rgba(212, 175, 55, 0.7);
}

/* ?? Close button */
.close-user-modal {
    color: var(--accent-color);
    font-size: 24px;
    float: right;
    cursor: pointer;
}

    .close-user-modal:hover {
        color: var(--accent-hover);
    }

/* ?? User Search Bar */
#userSearch {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 2px solid var(--accent-color);
    border-radius: 5px;
    background-color: var(--secondary-bg);
    color: var(--text-color);
}

/* ?? Scrollable User List */
.user-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

    .user-list li {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px;
        border-bottom: 1px solid var(--accent-color);
        color: var(--text-color);
        transition: background-color 0.3s;
    }

        .user-list li:hover {
            background-color: rgba(255, 215, 0, 0.2);
        }

/* ?? Styled User List Modal */
.modal-content {
    background-color: var(--secondary-bg) !important;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0px 0px 15px rgba(212, 175, 55, 0.7);
}

.modal-header {
    border-bottom: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.modal-title {
    color: var(--accent-color);
    font-weight: bold;
}

.modal-body {
    background: var(--primary-bg);
    color: var(--text-color);
    max-height: 500px;
    overflow-y: auto;
    padding: 15px;
}

/* ?? Styled Close Button */
.btn-close {
    filter: invert(90%) sepia(60%) saturate(300%) hue-rotate(10deg);
}

    .btn-close:hover {
        filter: invert(80%) sepia(100%) saturate(400%) hue-rotate(20deg);
    }

/* ?? Styled User List */
.user-list-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--accent-color);
    padding: 10px;
    border-radius: 5px;
    background: var(--secondary-bg);
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid var(--accent-color);
    background: var(--primary-bg);
    color: var(--text-color);
}

/* ?? Remove Button */
.remove-user-btn {
    background: transparent;
    border: none;
    color: red;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

    .remove-user-btn:hover {
        transform: scale(1.2);
        color: darkred;
    }

/* ?? Icons */
.filter-toggle, .clear-logs-toggle {
    font-size: 22px;
    color: gold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .filter-toggle:hover, .clear-logs-toggle:hover {
        transform: scale(1.1);
        color: var(--accent-hover);
    }

/* ?? Filter & Clear Log Sections */
.filter-delete-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-toggle-container, .clear-logs-toggle-container {
    background: var(--secondary-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

h4 {
    color: gold;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ?? Hide Sections Initially */
.filter-section, .clear-logs-section {
    display: none;
    margin-top: 10px;
}

/* ?? Inputs & Placeholders */
input[type="text"], input[type="date"] {
    background-color: #222!important;
    color: gold;
    border: 2px solid gold;
    padding: 8px;
    border-radius: 5px;
}

input::placeholder {
    color: gold;
    opacity: 0.8;
}

/* ?? Table Styling */
.fantasy-table th {
    background-color: #1c1c1c;
    color: gold;
    text-align: center;
    padding: 12px;
}

.fantasy-table tbody tr:hover {
    background-color: rgba(255, 170, 0, 0.2);
}

/* ?? Pagination */
.pagination .page-item.active .page-link {
    background-color: gold;
    border-color: gold;
    color: black;
}

.pagination .page-link {
    color: gold;
    border: 1px solid gold;
}

.pagination .page-item.disabled .page-link {
    color: gray;
    background-color: #222;
    border-color: gray;
}

/* ?? Smooth Appear Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ?? Success & Error Messages */
.fade-in-success, .fade-in-error {
    animation: fadeIn 0.5s ease-in-out;
}

/* ?? Filter & Clear Log Sections */
.filter-delete-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-toggle-container, .clear-logs-toggle-container {
    background: var(--secondary-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

h4 {
    color: gold;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ?? Icons */
.filter-toggle, .clear-logs-toggle {
    font-size: 22px;
    color: gold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .filter-toggle:hover, .clear-logs-toggle:hover {
        transform: scale(1.1);
        color: var(--accent-hover);
    }

/* ?? Hide Sections Initially */
.filter-section, .clear-logs-section {
    display: none;
    margin-top: 10px;
}

/* ?? Inputs & Placeholders */
input[type="text"], input[type="date"] {
    background-color: #222;
    color: gold;
    border: 2px solid gold;
    padding: 8px;
    border-radius: 5px;
}

input::placeholder {
    color: gold;
    opacity: 0.8;
}

/* ?? Smooth Appear Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}
/* ?? Platform Settings */
.settings-toggle {
    font-size: 22px;
    color: gold;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .settings-toggle:hover {
        transform: scale(1.1);
        color: var(--accent-hover);
    }

/* ? Settings Section (Initially Hidden) */
.settings-section {
    display: none;
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    background: var(--secondary-bg);
    border: 2px solid gold;
    box-shadow: 0px 0px 10px rgba(255, 215, 0, 0.5);
}

/* ?? Input Styling */
.setting-label {
    color: gold;
    font-weight: bold;
}

.setting-input {
    background-color: #222;
    color: white;
    border: 2px solid gold;
    padding: 10px;
    border-radius: 5px;
}

    .setting-input:focus {
        border-color: var(--accent-hover);
        box-shadow: 0px 0px 10px rgba(255, 215, 0, 0.7);
    }

/* ? Save Button */
.btn-primary {
    background-color: gold;
    border-color: gold;
    color: black;
    font-weight: bold;
}

    .btn-primary:hover {
        background-color: darkgoldenrod;
    }
/* ?? Role Toggle Switch */
.role-toggle-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.role-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--secondary-bg);
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--accent-color);
    transition: background 0.3s ease;
}

    .role-toggle:hover {
        background: rgba(255, 215, 0, 0.2);
    }

    /* ? Switch Style */
    .role-toggle input {
        display: none;
    }

    .role-toggle .slider {
        position: relative;
        width: 40px;
        height: 20px;
        background: #444;
        border-radius: 15px;
        transition: background 0.3s;
        cursor: pointer;
    }

    .role-toggle input:checked + .slider {
        background: gold;
    }

    .role-toggle .slider:before {
        content: "";
        position: absolute;
        width: 16px;
        height: 16px;
        background: white;
        border-radius: 50%;
        top: 50%;
        left: 3px;
        transform: translateY(-50%);
        transition: left 0.3s ease;
    }

    .role-toggle input:checked + .slider:before {
        left: 21px;
    }
/*******************************************************
  Overall Guilds List Page
********************************************************/
.guilds-list-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #f0e6d2; /* Light gold/cream text */
    background-color: #1c1c1c; /* Dark background */
    border-radius: 8px;
}

.guilds-list-title {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: gold;
    text-shadow: 1px 1px 2px #000;
}

/*******************************************************
  Search Bar
********************************************************/
.search-bar-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.search-bar {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    font-size: 1rem;
    border: 2px solid #444;
    border-radius: 8px;
    background-color: #222;
    color: #fff;
}

    .search-bar:focus {
        outline: none;
        border-color: gold;
        box-shadow: 0 0 5px gold;
    }

/*******************************************************
  Alerts
********************************************************/
.alert {
    width: 100%;
    max-width: 700px;
    margin: 10px auto;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
}

.alert-success {
    background-color: #2e6f2e;
    color: #cde7cd;
}

.alert-danger {
    background-color: #5f1d1d;
    color: #f1c7c7;
}

/* Optional fade-in transitions */
.fade-in-success, .fade-in-error {
    animation: fadeIn 0.7s ease;
}

/*******************************************************
  Guild Card Grid
********************************************************/
.guild-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* Optional media queries for smaller screens */
@media (max-width: 1200px) {
    .guild-card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/*******************************************************
  Guild Card
********************************************************/
.guild-card {
    background-color: #2a2a2a;
    border: 2px solid #444;
    border-radius: 10px;
    padding: 15px;
    position: relative;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s, border-color 0.3s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

    .guild-card:hover {
        transform: translateY(-3px);
        border-color: gold;
    }

/* Fade-in effect */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

/*******************************************************
  Guild Logo
********************************************************/
.guild-logo-container {
    width: 100%;
    max-height: 150px;
    overflow: hidden;
    margin-bottom: 10px;
    border-radius: 8px;
}

.guild-logo {
    width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/*******************************************************
  Guild Name & Description
********************************************************/
.guild-name {
    margin: 0;
    font-size: 1.4rem;
    color: gold;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px #000;
}

.guild-description {
    font-size: 0.95rem;
    color: #ccc;
    margin-bottom: 15px;
}

/*******************************************************
  Join / Request Buttons
********************************************************/
.guild-join-area {
    margin-top: 10px;
}

/* Primary "Request to Join" button */
.btn-join {
    background-color: gold;
    color: #1c1c1c;
    border: 2px solid goldenrod;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

    .btn-join:hover {
        background-color: #e6c451;
    }

/* Disabled (Already in a Guild / Request Sent) */
.btn-disabled {
    background-color: #666;
    color: #aaa;
    border: 2px solid #555;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: not-allowed;
    font-weight: bold;
}

/*******************************************************
  No Guilds Found
********************************************************/
.no-guilds-message {
    text-align: center;
    font-size: 1.1rem;
    margin-top: 20px;
    color: #bbb;
}

/*******************************************************
  Animations
********************************************************/
@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ?? Ashen Coins Section */
.ashen-coins-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

/* ?? Coins Container */
.ashen-coins-container {
    display: flex;
    align-items: center;
    gap: 12px; /* Adjusted for better spacing */
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #FFD700; /* Gold color */
}

/* ?? Coin Icon */
.coin-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
    animation: coinGlow 3s infinite alternate ease-in-out;
}

/* ?? Smoother Coin Glow Animation */
@keyframes coinGlow {
    0% {
        filter: drop-shadow(0px 0px 3px rgba(255, 215, 0, 0.6));
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0px 0px 15px rgba(255, 215, 0, 0.9));
        transform: scale(1.05);
    }
}

/* ?? Coin Hover Effect */
.coin-icon:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease-in-out;
}

/* ?? Coins Amount */
.ashen-coins-amount {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700;
    transition: transform 0.3s ease, color 0.3s ease;
}

    /* ?? Flash effect when coins update */
    .ashen-coins-amount.flash {
        animation: flashCoins 0.5s ease-in-out;
    }

@keyframes flashCoins {
    0% {
        color: white;
        transform: scale(1.2);
    }

    100% {
        color: #FFD700;
        transform: scale(1);
    }
}

/* ?? Refresh Button */
.refresh-coins-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #FFD700;
    font-size: 18px;
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

    /* ?? Refresh Button Hover Effect */
    .refresh-coins-btn:hover {
        transform: rotate(180deg) scale(1.1);
        color: white;
    }

    /* ?? Refresh Button Loading Animation */
    .refresh-coins-btn.loading {
        animation: rotateRefresh 0.6s linear infinite;
    }

@keyframes rotateRefresh {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.text-gold {
    color: #d4af37 !important;
}


.custom-toast-message {
    transition: opacity 0.5s ease;
}

    .custom-toast-message.fade {
        opacity: 0;
    }


/*CONFIRMATION MODAL GLOBAL*/

#confirmActionModal .modal-content {
    background-color: #1c1c1c;
    border: 2px solid #d4af37;
    border-radius: 1rem;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.15);
    font-family: 'Segoe UI', sans-serif;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#confirmActionModal .modal-header {
    background: linear-gradient(to right, #2d2d2d, #1c1c1c);
    border-bottom: 1px solid #d4af37;
}

#confirmActionModal .modal-title {
    font-weight: bold;
    font-size: 1.15rem;
    color: #d4af37;
    text-shadow: 0 0 5px rgba(212, 175, 55, 0.3);
}

#confirmActionModal .modal-body p {
    font-size: 0.95rem;
    color: #cccccc;
    line-height: 1.5;
}

#confirmActionModal .modal-footer {
    background-color: #121212;
    border-top: 1px solid #d4af37;
}

#confirmActionModal .btn-outline-danger {
    border-color: #ff4c4c;
    color: #ff4c4c;
}

    #confirmActionModal .btn-outline-danger:hover {
        background-color: #ff4c4c;
        color: #1a1a1a;
        box-shadow: 0 0 8px rgba(255, 76, 76, 0.3);
    }

#confirmActionModal .btn-outline-secondary {
    border-color: #888;
    color: #ccc;
}

    #confirmActionModal .btn-outline-secondary:hover {
        background-color: #444;
        color: #fff;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
    }

#confirmActionModal .btn {
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.4rem 1rem;
    letter-spacing: 0.5px;
}

.btn-discord {
    background-color: #5865F2;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: white !important;
}

    .btn-discord:hover {
        background-color: #4752C4;
        color: #fff !important;
        transform: scale(1.05);
        box-shadow: 0 0 8px #5865F2;
    }
