/* Cricket Widget Styles */
.cricket-live-score-widget {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2c3e50;
    line-height: 1.6;
}

.cricket-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e1e8ed;
}

.cricket-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #09844e;
}

.cricket-refresh-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.cricket-refresh-btn {
    background: none;
    border: none;
    color: #09844e;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cricket-refresh-btn:hover {
    background-color: rgba(9, 132, 78, 0.1);
}

.cricket-refresh-btn.spinning {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cricket-auto-refresh-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cricket-toggle-switch {
    position: relative;
    width: 40px;
    height: 22px;
    background-color: #ccc;
    border-radius: 11px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cricket-toggle-switch.active {
    background-color: #2ecc71;
}

.cricket-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.cricket-toggle-switch.active .cricket-toggle-slider {
    transform: translateX(18px);
}

.cricket-last-updated {
    font-size: 12px;
    color: #7f8c8d;
}

.cricket-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cricket-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cricket-section-title i {
    color: #09844e;
}

.cricket-view-all-btn {
    background: none;
    border: none;
    color: #09844e;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.cricket-view-all-btn:hover {
    color: #054a29;
}

/* Slider Styles */
.cricket-slider-container {
    position: relative;
    margin-bottom: 25px;
}

.cricket-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    padding: 10px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: #09844e #f1f1f1;
}

.cricket-slider::-webkit-scrollbar {
    height: 6px;
}

.cricket-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.cricket-slider::-webkit-scrollbar-thumb {
    background: #09844e;
    border-radius: 10px;
}

.cricket-match-card {
    min-width: 280px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    scroll-snap-align: start;
}

.cricket-match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.cricket-match-header {
    padding: 10px 15px;
    background-color: #09844e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cricket-match-series {
    font-size: 14px;
    font-weight: 500;
}

.cricket-match-status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-weight: 600;
}

.cricket-match-status.live {
    background-color: #e74c3c;
    animation: pulse 1.5s infinite;
}

.cricket-match-status.completed {
    background-color: #2ecc71;
}

.cricket-match-status.delay {
    background-color: #f39c12;
}

.cricket-match-status.upcoming {
    background-color: #f39c12;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.cricket-match-body {
    padding: 15px;
}

.cricket-match-desc {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 10px;
    font-weight: 500;
}

.cricket-teams-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cricket-team {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.cricket-team-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #09844e;
    font-size: 14px;
}

.cricket-team-name {
    font-weight: 600;
    font-size: 16px;
}

.cricket-team-score {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
}

.cricket-match-score-details {
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 3px;
}

.cricket-match-status-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #7f8c8d;
}

.cricket-match-footer {
    padding: 10px 15px;
    background-color: #f5f7fa;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #7f8c8d;
}

.cricket-match-venue {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Navigation buttons for slider */
.cricket-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #09844e;
}

.cricket-slider-nav:hover {
    background-color: #09844e;
    color: white;
}

.cricket-slider-nav.cricket-prev {
    left: -18px;
}

.cricket-slider-nav.cricket-next {
    right: -18px;
}

/* Points Table Styles */
.cricket-points-table-container {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.cricket-points-table {
    width: 100%;
    border-collapse: collapse;
}

.cricket-points-table th {
    background-color: #09844e;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

.cricket-points-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e8ed;
}

.cricket-points-table tr:last-child td {
    border-bottom: none;
}

.cricket-points-table tr:hover {
    background-color: #f5f7fa;
}

.cricket-team-position {
    font-weight: 700;
    color: #09844e;
}

.cricket-team-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cricket-team-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #09844e;
    font-weight: bold;
    font-size: 12px;
}

/* Loading State */
.cricket-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
}

.cricket-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #09844e;
    animation: spin 1s ease-in-out infinite;
}

/* No Data State */
.cricket-no-data {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

/* Toast Notification */
.cricket-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    padding: 12px 18px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 280px;
}

.cricket-toast.show {
    transform: translateX(0);
}

.cricket-toast.success {
    border-left: 4px solid #2ecc71;
}

.cricket-toast.error {
    border-left: 4px solid #e74c3c;
}

.cricket-toast.info {
    border-left: 4px solid #09844e;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cricket-widget-header {
        flex-direction: column;
        gap: 10px;
    }

    .cricket-match-card {
        min-width: 260px;
    }

    .cricket-slider-nav {
        display: none;
    }

    .cricket-section-title {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cricket-match-card {
        min-width: 240px;
    }

    .cricket-team-score {
        font-size: 16px;
    }

    .cricket-team-name {
        font-size: 14px;
    }

    .cricket-points-table {
        font-size: 12px;
    }

    .cricket-points-table th, .cricket-points-table td {
        padding: 8px;
    }
}