/* Custom styles matching bootstrap-dark-5 theme with blue highlights */

:root {
    --blue-highlight: #0d6efd;
    --blue-glow: rgba(13, 110, 253, 0.25);
    --blue-gradient: linear-gradient(135deg, #0d6efd, #0dcaf0);
    --dark-bg-color: #212529;
    --dark-card-bg: #2c3034;
    --border-color: #383d41;
}

body {
    /* Match bootstrap-dark-5 default body background */
    background-color: var(--dark-bg-color) !important;
    color: #f8f9fa !important;
}

/* Navbar overrides */
.navbar {
    background-color: #1a1e21 !important;
    border-bottom: 1px solid var(--border-color);
}

/* Dashboard Cards */
.stat-card {
    background: var(--dark-card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
}

/* Apply blue highlight gradient to top card border */
.card-primary::before,
.card-info::before,
.card-success::before,
.card-warning::before {
    background: var(--blue-gradient);
}

.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--blue-highlight) !important;
    box-shadow: 0 0 15px var(--blue-glow);
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #a8aeb4;
    font-weight: 600;
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.25;
    position: absolute;
    right: 1.25rem;
    top: 1.25rem;
    color: var(--blue-highlight);
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    opacity: 0.7;
    color: #0dcaf0;
    transform: scale(1.1);
}

/* Chart Container Styling */
.chart-card {
    background: var(--dark-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-title i {
    color: var(--blue-highlight);
}

/* Accordion modifications to look dark-gray */
.accordion-item {
    background-color: var(--dark-card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-button {
    background-color: var(--dark-card-bg) !important;
    color: #f3f4f6 !important;
}

.accordion-button:not(.collapsed) {
    background-color: #343a40 !important;
    color: var(--blue-highlight) !important;
    box-shadow: none !important;
}

.accordion-button::after {
    filter: invert(1);
}

/* Floating Game Master Mascot Widget */
.floating-gm-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--blue-gradient);
    border: none;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.4);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.floating-gm-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 0 25px rgba(13, 202, 240, 0.8);
}

.gm-hint-card {
    position: fixed;
    bottom: 95px;
    right: 25px;
    z-index: 1050;
    width: 320px;
    animation: slideInGM 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.gm-avatar-icon {
    font-size: 1.4rem;
    background: rgba(13, 110, 253, 0.2);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(13, 110, 253, 0.4);
}

@keyframes slideInGM {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
