/* تنسيقات لوحة النتائج - scoreboard.css */

.scoreboard-container {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 2px solid #e0e0e0;
    overflow: visible;
}

.scoreboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
    gap: 15px;
}

.scoreboard-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    text-shadow: none;
    flex: 1;
    text-align: center;
}

.undo-button {
    padding: 8px 16px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.undo-button:hover {
    background: linear-gradient(135deg, #ee5a6f, #ff6b6b);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.undo-button:active {
    transform: translateY(0);
}

.scoreboard-settings {
    font-size: 22px;
    cursor: pointer;
    color: #667eea;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.1);
}

.scoreboard-settings:hover {
    color: #764ba2;
    transform: rotate(90deg);
    background: rgba(118, 75, 162, 0.15);
}

.teams-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0;
    gap: 20px;
    overflow: visible;
}

.team-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    max-width: 45%;
    transition: all 0.4s ease;
    border-radius: 16px;
    background: #f5f5f5;
    cursor: pointer;
    border: 3px solid transparent;
}

.team-container:hover {
    background: #e8e8e8;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.team-container.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    transform: scale(1.03);
    border: 3px solid #667eea;
}

.team-container.active .team-name,
.team-container.active .team-score {
    color: white !important;
}

.score-separator {
    font-size: 28px;
    font-weight: 700;
    color: #999;
    text-shadow: none;
    padding: 0 10px;
}

.team-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333;
    text-shadow: none;
}

.score-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-score {
    font-size: 48px;
    font-weight: 700;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    color: #333;
    text-shadow: none;
}

.score-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: var(--accent-color);
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    margin: 0 10px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.score-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.decrease-btn {
    background-color: #ef5350;
}

.increase-btn {
    background-color: #66bb6a;
}

.scoreboard-controls {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 10px;
    border-top: 2px solid rgba(63, 81, 181, 0.2);
}

/* أنماط أزرار لوحة النتائج */
.scoreboard-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 50px;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 5px;
}

.scoreboard-btn:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.reset-btn-in-settings {
    background-color: #ef5350;
}

.reset-btn-in-settings:hover {
    background-color: #d32f2f;
}

/* أنماط زر التحكم في الصوت */
.sound-control {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.sound-control:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.sound-on {
    color: #66bb6a;
}

.sound-off {
    color: #ef5350;
}

/* إضافة تعديلات لزر تعديل لوحة النتائج */
#editScoreBtn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

#editScoreBtn:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

/* تنسيق نص المساعدة في قسم إعادة تعيين النتائج */
.reset-help-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}