/* ============================
  Global
  ============================ */
body {
    background-color: #fdf6e3;  /* light background for FortunaIsk */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ============================
  Top Navbar Padding Override
  ============================ */
nav.navbar .navbar-brand,
nav.navbar .nav-link {
    padding: 0.75rem 1rem !important;
}

/* ============================
  Top Navbar (FortunaIsk)
  ============================ */
nav.navbar.navbar-expand-lg {
    background: linear-gradient(135deg, #f1c40f, #27ae60);
}

nav.navbar.navbar-expand-lg .navbar-brand,
nav.navbar.navbar-expand-lg .nav-link {
    color: #fff !important;
    font-weight: 600;
}

nav.navbar.navbar-expand-lg .navbar-brand:hover,
nav.navbar.navbar-expand-lg .nav-link:hover {
    color: #f1c40f !important;
}

/* ============================
  Active Nav Item
  ============================ */
nav.navbar .navbar-nav .nav-item.active > .nav-link {
    color: #27ae60 !important;
    background-color: rgb(39 174 96 / 10%);
    border-radius: 0.25rem;
}

/* ============================
  Scope FortunaIsk App
  ============================ */
.fortunaisk-app .card {
    margin-bottom: 20px;
    border: 1px solid #d4af37; /* gold border */
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgb(0 0 0 / 10%);
}

/* ============================
  Tables
  ============================ */
.fortunaisk-app .table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
    color: #212529;
}

.fortunaisk-app .table th,
.fortunaisk-app .table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #d4af37;
}

.fortunaisk-app .table th {
    background-color: #28a745; /* green */
    color: #ffd700;            /* gold text */
}

.fortunaisk-app .table tr:hover {
    background-color: #e8f5e9; /* light green */
}

/* ============================
  Alerts
  ============================ */
.fortunaisk-app .alert {
    padding: 10px 20px;
    border-radius: 5px;
}

/* ============================
  Utility colors
  ============================ */
.fortunaisk-app .bg-gold {
    background-color: #ffd700 !important;
}

.fortunaisk-app .text-gold {
    color: #ffd700 !important;
}

.fortunaisk-app .bg-green {
    background-color: #28a745 !important;
}

.fortunaisk-app .text-green {
    color: #28a745 !important;
}

/* ============================
  Buttons
  ============================ */
.fortunaisk-app .btn-green {
    background-color: #28a745;
    border-color: #28a745;
    color: #fff;
}

.fortunaisk-app .btn-green:hover,
.fortunaisk-app .btn-green:focus {
    background-color: #218838;
    border-color: #1e7e34;
}

.fortunaisk-app .btn-gold {
    background-color: #ffd700;
    border-color: #ffd700;
    color: #000;
}

.fortunaisk-app .btn-gold:hover,
.fortunaisk-app .btn-gold:focus {
    background-color: #e6c200;
    border-color: #ccb700;
}

/* ============================
  Sidebar override (AllianceAuth)
  ============================ */
.fortunaisk-app ul#sidebar-menu,
.fortunaisk-app ul#sidebar-menu.pt-2 {
    padding-top: 0 !important;
}

/* ============================
  Sparkle Animation
  ============================ */
.lottery-title {
    position: relative;
    display: inline-block;
}

.sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #f1c40f;
    pointer-events: none;
    z-index: 100;
    animation: sparkle-animation 1s ease-in-out forwards;
}

@keyframes sparkle-animation {
    0% {
        opacity: 0;
        transform: scale(0);
    }

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

    100% {
        opacity: 0;
        transform: scale(0) translateY(-20px);
    }
}

/* ============================
  Title Sparkle Animation
  ============================ */
.title-sparkle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #f1c40f;
    pointer-events: none;
    z-index: 10000;
    animation: title-sparkle-animation 1s ease-in-out forwards;
}

@keyframes title-sparkle-animation {
    0% {
        opacity: 0;
        transform: scale(0);
    }

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

    100% {
        opacity: 0;
        transform: scale(0) translateY(-20px);
    }
}
