/*
/////////////////////////////////////////////////////////
  Start File livepress.css
/////////////////////////////////////////////////////////*/
.league-card {
    transition: transform 0.3s;
    margin-bottom: 1.5rem;
}

.league-card:hover {
    transform: translateY(-5px);
}

span.badge.matchs-num {
    background-color: #eee;
    color: #333
}

.list-group-item {
    border: 1px solid #e9e9e9;
    background-color: #f2f2f2;
}

.league-header {
    background: #E3E5F0;
}

div.card-header.league-header > div > h4 {
    font-size: 0.80rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
    /* تحديد الحد الأقصى لعرض العنوان */
}

a.league-card:hover {
    transform: scale(1.03);
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.team-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.team-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

span.text-muted.finshed {
    font-size: 10px;
}

/* Compact layout */
.league-card {
    margin-bottom: 10px;
}

.team-name {
    font-size: 12px;
}

.match-score {
    font-size: 1rem;
    padding: 0.25rem 0.5rem;
}

small.fc_time {
    font-weight: 600;
    font-size: 21px;
}

/* تعيين عرض ثابت لكل زر */
#matchesTab .nav-item {
    width: 30%;
    /* عرض ثابت لكل زر */
}

#matchesTabContent {
    max-height: 265vh;
    /* قم بتحديد الارتفاع كما تريد */
    overflow-x: hidden;
    overflow-y: auto;
    /* تمكين التمرير العمودي */
    scroll-behavior: smooth;
    /* تأثير التمرير السلس */
    touch-action: auto;
}

#matchesTabContent::-webkit-scrollbar {
    display: none;
    /* إخفاء شريط التمرير */
}

#matchesTabContent {
    scrollbar-width: none;
}

/* محاذاة الأزرار في الوسط */
#matchesTab {
    display: flex;
    justify-content: space-between;
    /* توزيع الأزرار */
    border: none;
}

#matchesTab .nav-link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0;
    /* مسافات داخلية */
    text-align: center;
    /* محاذاة النص */
    width: 100%;
    /* تأكد من أن الأزرار تشغل عرض العنصر */
}

.no-matches {
    text-align: center;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    color: #7f8c8d;
}

.fc_time,
.fc_time_show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc_time_show {
    font-size: 1rem;
}

.status-badge {
    font-size: 0.8rem;
}

span.badge.bg-info {
    width: 100%;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 40px;
    margin: auto;
    padding: 0;
}

span.status-badge.text-danger {
    width: 100%;
    display: flex;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    height: 16px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    max-width: 40px;
    margin: auto;
}

/* إضافة التأثير على النص داخل span */
span.pulse-text {
    font-size: 0.5rem;
    color: #ffffff;
}
.animate-pulse {
    animation: blink 1s infinite linear;
}
.date-navigation-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
}

.nav-arrow a {
    transition: all 0.3s ease;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow a:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.current-date-display {
    text-align: center;
}

.date-text {
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.btn i {
    font-size: 1rem;
}

#calendarModal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#calendarModal .modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 15px 15px 0 0;
}

#datePicker {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px;
    font-size: 1rem;
    position: relative;
}

#datePicker:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* تنسيق أيقونة التقويم للوضع العادي */
/* تنسيق النتائج والفرق الفائزة */
.match-score {
    font-size: 1rem !important;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
}

.score-team1,
.score-team2 {
    transition: all 0.3s ease;
}

.score-separator {
    color: #262626;
}

/* الفريق الفائز */
.score-team1.winner,
.score-team2.winner {
    /*    background-color: #28a745;*/
    color: #28a745;
    /*    box-shadow: 0 0 8px rgba(40, 167, 69, 0.4);*/
    font-weight: 900;
}

/* الفريق الخاسر */
.score-team1.loser,
.score-team2.loser {
    /*    background-color: #dc3545;*/
    color: #dc3545;
    opacity: 0.8;
}

/* التعادل */
.score-team1.draw,
.score-team2.draw {
    /*    background-color: #ffc107;*/
    color: #ffc107;
    font-weight: bold;
}

.team-name {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    /*    text-overflow: ellipsis;*/
}

#datePicker::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='%23212529' d='M6.5 1A1.5 1.5 0 0 1 8 2.5V3h4V2.5A1.5 1.5 0 0 1 13.5 1h1A1.5 1.5 0 0 1 16 2.5V15a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2.5A1.5 1.5 0 0 1 1.5 1h1zM2 4v11h12V4H2zm2.5 0h7v2h-7V4zm0 3h7v2h-7V7zm0 3h7v2h-7v-2z'/%3e%3c/svg%3e");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 1;
}

/* حل بديل باستخدام CSS filter للمتصفحات الأخرى */
@media (prefers-color-scheme: dark) {
    #datePicker::-webkit-calendar-picker-indicator {
        filter: invert(1);
    }
}

.no-matches {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    padding: 3rem 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.league-card {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.league-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

span.time-arabic {
    margin-right: 3px;
    font-size: 12px;
}

/* تكيف مع الأجهزة الصغيرة */
@media (max-width: 768px) {
    #matchesTabContent {
        max-height: none !important;
    }

    .egy-list-group .list-group-item {
        gap: 0 !important;
        font-size: 11px !important;
    }

    .egy-list-group h3 {
        font-size: 1.3rem;
    }

    .card-body h2 {
        font-size: 1.3rem;
    }

    span.time-arabic {
        font-size: 10px;
    }

    .date-text {
        font-size: 1rem;
    }

    .nav-arrow a {
        width: 22px;
        height: 22px;
    }

    .btn i {
        font-size: inherit;
    }

    .team-logo {
        width: 26px;
        height: 26px;
    }

    .match-score {
        font-size: 0.95rem;
    }

    .team-name {
        font-size: 12px
    }

    div.card-header.league-header > div > h6 {
        max-width: 160px;
    }

}

/*
////////////////////////////////////////////////////////
    All @keyframes Hare
///////////////////////////////////////////////////////*/
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-20px);
    }

    60% {
        transform: translateY(-10px);
    }
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

/* الأنيميشن */
@keyframes pulseanimation {
    0% {
        opacity: .8;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .8;
    }
}

/* أنيميشن للوهج */
@keyframes glow {

    0%,
    100% {
        filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.4));
    }

    50% {
        filter: drop-shadow(0 0 15px rgba(0, 255, 136, 0.8));
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}