﻿
.sc-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-modal-main {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.sc-modal-header {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sc-modal-title {
    margin: 0;
    color: #333;
    font-weight: bold;
}

.sc-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 5px;
    color: #666;
    line-height: 1;
}

    .sc-modal-close:hover {
        color: #333;
    }

.sc-modal-body {
    padding: 30px 20px;
    text-align: center;
}

.sc-modal-message {
    margin-bottom: 30px;
    color: #555;
    font-size: 16px;
}

.sc-timer-container {
    text-align: center;
    width: 100%;
}

.sc-timer-display {
    margin: 20px auto;
    font-size: 4em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #333;
}

    .sc-timer-display.warning-orange {
        color: #fd7e14;
    }

    .sc-timer-display.warning-red {
        color: #dc3545;
        animation: sc-pulse 1s infinite;
    }

.sc-timer-label {
    color: #666;
    margin: 0;
    font-size: 18px;
}

.sc-modal-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.sc-btn {
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    border: 2px solid;
    transition: all 0.2s;
}

.sc-btn-primary {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    font-weight: bold;
}

    .sc-btn-primary:hover:not(:disabled) {
        background-color: #0056b3;
        transform: translateY(-1px);
    }

    .sc-btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.sc-btn-secondary {
    background-color: #6c757d;
    color: white;
    border-color: #6c757d;
}

    .sc-btn-secondary:hover {
        background-color: #5a6268;
    }

/* Animation for timer pulse */
@keyframes sc-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}
