/*improved CSS for 360footbol*/

body.no-skin {
    background: radial-gradient(circle at top, #111827 0, #020617 45%, #000 100%);
    color: #e5e7eb;
}

.navbar.navbar-default {
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.7);
}

.navbar-brand img {
    max-width: 140px;
    height: auto;
}

.main-container,
.page-content {
    background: transparent;
}

.page-header {
    border-bottom: none;
    margin-bottom: 15px;
}

.page-header h1 {
    color: #f9fafb;
    font-weight: 600;
}

.page-header small {
    color: #9ca3af;
}

.breadcrumbs {
    background: rgba(15, 23, 42, 0.85);
    border-radius: 10px;
    border: 1px solid rgba(75, 85, 99, 0.7);
}

.breadcrumb > li > a {
    color: #e5e7eb;
}

.breadcrumb > li.active,
.breadcrumb > li span {
    color: #9ca3af;
}

.alert-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    border: none;
    color: #ecfdf5;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.45);
}

.alert-info {
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    color: #ecfeff;
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.4);
}

.tabbable {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    padding: 15px 15px 20px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(55, 65, 81, 0.9);
}

.nav-tabs {
    border-bottom: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nav-tabs > li > a {
    border-radius: 999px !important;
    border: none !important;
    background: rgba(30, 64, 175, 0.3);
    color: #e5e7eb;
    padding: 8px 18px;
    margin-right: 0;
}

.nav-tabs > li.active > a,
.nav-tabs > li > a:hover {
    background: linear-gradient(135deg, #2563eb, #4f46e5) !important;
    color: #f9fafb !important;
}

.tab-content {
    padding: 15px 5px 5px;
    color: #e5e7eb;
}

.tab-content h5,
.tab-content h3 {
    color: #f9fafb;
}

#AllGames-show,
#Livescores-show,
#results-show,
#fixtures-show {
    margin-top: 10px;
}

.footer {
    background: transparent;
    border-top: none;
    color: #9ca3af;
}

.footer-content {
    border-top: 1px solid rgba(55, 65, 81, 0.7);
    padding-top: 10px;
}

.footer a {
    color: #93c5fd;
}

#goal-indicator .modal-content {
    background: #020617;
    color: #e5e7eb;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

#goal-indicator .modal-header {
    border-bottom-color: rgba(55, 65, 81, 0.7);
}

.modal-title {
    font-weight: 600;
}

.notify .heartbit,
.notify .point {
    background: #22c55e;
}

#btn-scroll-up {
    background: #1f2937 !important;
    border-radius: 999px;
    border: none;
}

#btn-scroll-up:hover {
    background: #111827 !important;
}

.nav-search-input {
    border-radius: 999px !important;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
}

.nav-search-input::placeholder {
    color: #6b7280;
}

/* Floating NOW LIVE badge (option A) */
#live-badge {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ecfdf5;
    padding: 8px 14px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.55);
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#live-badge.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#live-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bbf7d0;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    70% {
        transform: scale(1.4);
        box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* Neon line skeleton loaders (style 3) */
.skeleton-wrap {
    padding: 8px 0;
}

.skeleton-block {
    margin-bottom: 12px;
}

.skeleton-line {
    height: 9px;
    border-radius: 999px;
    margin-bottom: 6px;
    background: linear-gradient(90deg, #020617, #1f2937, #020617);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.2s linear infinite;
}

.skeleton-line.short {
    width: 35%;
}

.skeleton-line.medium {
    width: 60%;
}

.skeleton-line.long {
    width: 100%;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Mobile tabs: bigger, clearer (option III) */
@media (max-width: 768px) {
    .tabbable {
        padding: 10px;
    }

    .nav-tabs {
        justify-content: space-between;
    }

    .nav-tabs > li {
        float: none !important;
        flex: 1 1 auto;
        text-align: center;
    }

    .nav-tabs > li > a {
        display: block;
        padding: 7px 10px;
        font-size: 12px;
        margin-bottom: 4px;
    }

    .navbar-brand img {
        max-width: 110px;
    }

    #live-badge {
        right: 12px;
        bottom: 12px;
        font-size: 12px;
        padding: 7px 12px;
    }
}

.live-scores-wrapper { margin-top: 10px; }

.live-scores-table {
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

.live-scores-table thead th {
    border-bottom: none;
}

.latest-score-row td {
    vertical-align: middle;
    font-size: 13px;
}

.flag-icon-country,
.flag-icon-league {
    max-width: 18px;
    height: auto;
}

.team-badge {
    max-width: 26px;
    height: auto;
}

.live-blink-icon {
    max-width: 16px;
    height: auto;
}

.league-name-strong,
.team-name-strong {
    font-weight: 600;
    color: #f9fafb;
}

.score-highlight {
    font-weight: 700;
    color: #ef4444;
}

.score-zero {
    opacity: 0.9;
}

.goal-audio-hidden {
    display: none;
}
.live-table-wrapper {
    background: linear-gradient(135deg, #0b1725, #111827);
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.table-live tbody tr.live-section-row {
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
}

.match-league-cell .league-badge,
.match-league-cell .league-badge-icon {
    width: 20px;
    height: 20px;
    margin-right: 6px;
}

.team-badge {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    margin-right: 6px;
}

.team-badge-icon {
    margin-right: 6px;
}

.match-team {
    font-weight: 600;
}

.match-score-link {
    text-decoration: none;
}

.match-live-indicator {
    width: 14px;
    vertical-align: middle;
    margin-left: 4px;
}

.live-badge-glow {
    animation: livePulse 1.4s infinite;
    box-shadow: 0 0 8px rgba(0, 255, 0, 0.4);
}

.live-dot-glow {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-left: 6px;
    animation: liveDot 0.8s infinite ease-in-out;
}
.extra-time-glow {
    background: rgba(255, 0, 0, 0.06);
    animation: extraTimePulse 1.3s infinite;
}

.extra-time-badge {
    animation: extraTimeBadgePulse 1s infinite;
    box-shadow: 0 0 12px rgba(255, 0, 0, 0.6);
}

@keyframes livePulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: .6; transform: scale(1.08); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes liveDot {
    0% { opacity: .3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: .3; transform: scale(1); }
}

@keyframes extraTimePulse {
    0% { background-color: rgba(255,0,0,0.05); }
    50% { background-color: rgba(255,0,0,0.18); }
    100% { background-color: rgba(255,0,0,0.05); }
}

@keyframes extraTimeBadgePulse {
    0% { box-shadow: 0 0 8px rgba(255,0,0,0.4); }
    50% { box-shadow: 0 0 18px rgba(255,0,0,0.9); }
    100% { box-shadow: 0 0 8px rgba(255,0,0,0.4); }
}
#updating-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    display: none;
    z-index: 9999;
}

#updating-indicator .spinner {
    width: 10px;
    height: 10px;
    display: inline-block;
    margin-right: 6px;
    border-radius: 50%;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
