/* ==========================================
   screen-email.css
   Stiluri pentru:
     - _ScreenEmail.cshtml (screen-email + screen-identity + screen-blocked)
   Referinta in: Support.cshtml, si orice alt job view care include _ScreenEmail partial
   ========================================== */

/* Wrapper principal assessment */
.sa-wrapper {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 50%, #f5f0ff 100%);
    padding: 2rem 1rem 4rem;
}

.sa-screen {
    display: none;
}

/* ==================== CARDS ==================== */
.sa-card {
    max-width: 700px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 2.5rem;
    animation: saSlideIn 0.3s ease;
}

.sa-card-sm {
    max-width: 480px;
}

@keyframes saSlideIn {
    from { opacity: 0; transform: translateY(-15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==================== TYPOGRAPHY ==================== */
.sa-card h1 {
    font-size: 1.6rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.sa-card h2 {
    font-size: 1.4rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.sa-card h3 {
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.sa-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.sa-text-muted {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.sa-text-sm {
    color: #9ca3af;
    font-size: 0.85rem;
}

.sa-center {
    text-align: center;
}

/* ==================== ICON CIRCLES ==================== */
.sa-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
}

.sa-icon-circle.small {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    margin: 0;
}

.sa-icon-circle.big {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
}

.sa-icon-circle.purple { background: #ede9fe; }
.sa-icon-circle.blue   { background: #dbeafe; }
.sa-icon-circle.green  { background: #d1fae5; }
.sa-icon-circle.orange { background: #ffedd5; }
.sa-icon-circle.indigo { background: #e0e7ff; }

/* ==================== FORM FIELDS ==================== */
.sa-field {
    margin-bottom: 1.2rem;
}

.sa-field label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.sa-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
    background: white;
}

.sa-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.sa-input.error {
    border-color: #dc2626;
    background: #fef2f2;
}

.sa-input.readonly {
    background: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.sa-input.sa-input-error {
    border-color: #ef4444;
    background: #fef2f2;
}

.sa-error-msg {
    color: #dc2626;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
    line-height: 1.4;
}

/* ==================== BUTTONS ==================== */
.sa-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.sa-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.sa-btn-primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sa-btn-primary.full {
    width: 100%;
}

.sa-btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 0.85rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    font-family: inherit;
}

.sa-btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.sa-btn-dark {
    background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.sa-btn-dark:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 41, 55, 0.4);
}

.sa-btn-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

/* ==================== INFO BOX ==================== */
.sa-info-box {
    background: #f0f4ff;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.sa-info-box p {
    color: #374151;
    font-size: 0.9rem;
    line-height: 1.6;
}

.sa-info-box.blue {
    background: #eff6ff;
}

.sa-info-box h3 {
    font-size: 1rem;
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.sa-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sa-info-box ul li {
    padding: 0.25rem 0;
    color: #1e40af;
    font-size: 0.9rem;
}

.sa-info-box ul li::before {
    content: '• ';
    color: #3b82f6;
}

/* ==================== HEADER BAR ==================== */
.sa-header-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ==================== PROGRESS BAR ==================== */
.sa-progress-track {
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.sa-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

.sa-progress-fill.green  { background: #10b981; }
.sa-progress-fill.blue   { background: #3b82f6; }
.sa-progress-fill.violet { background: linear-gradient(90deg, #667eea 0%, #764ba2 100%); }

.sa-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

/* ==================== BADGE ==================== */
.sa-badge {
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.sa-badge.indigo { background: #e0e7ff; color: #4338ca; }
.sa-badge.blue   { background: #dbeafe; color: #1d4ed8; }

/* ==================== GDPR ==================== */
.sa-gdpr {
    text-align: center;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 1.5rem;
}

.sa-gdpr a {
    color: #667eea;
    text-decoration: underline;
}

/* ==================== TOAST NOTIFICATIONS ==================== */
.sa-toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    pointer-events: none;
}

.sa-toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    pointer-events: all;
    animation: saToastIn 0.3s ease;
    max-width: 340px;
    line-height: 1.4;
}

.sa-toast.error   { background: #dc2626; }
.sa-toast.success { background: #16a34a; }
.sa-toast.info    { background: #2563eb; }

.sa-toast-icon { font-size: 1.2rem; flex-shrink: 0; }

@keyframes saToastIn {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes saToastOut {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(40px); }
}

@media (max-width: 768px) {
    .sa-toast-container {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
    .sa-toast { max-width: 100%; }
}

/* ==================== UTILITY ==================== */
.sa-hidden { display: none !important; }

/* ==================== WELCOME SCREEN STAGES ==================== */
.sa-assessment-stages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sa-stage-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s;
}

.sa-stage-item:hover {
    border-color: #a5b4fc;
    transform: translateX(5px);
}

.sa-stage-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.sa-stage-content {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.sa-stage-content strong { color: #1f2937; font-size: 1rem; }
.sa-stage-content span   { color: #6b7280; font-size: 0.85rem; }

/* ==================== ASSESSMENT PROGRESS TRACKER ==================== */
.sa-assessment-progress {
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sa-progress-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.sa-progress-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    position: relative;
    z-index: 2;
}

.sa-progress-stage span {
    font-size: 0.75rem;
    color: #9ca3af;
    font-weight: 500;
    text-align: center;
    max-width: 80px;
}

.sa-progress-stage.active .sa-progress-circle {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transform: scale(1.1);
}

.sa-progress-stage.active span {
    color: #667eea;
    font-weight: 600;
}

.sa-progress-stage.completed .sa-progress-circle {
    background: #10b981;
    color: white;
    border-color: #10b981;
}

.sa-progress-stage.completed span {
    color: #10b981;
    font-weight: 600;
}

.sa-progress-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #9ca3af;
    transition: all 0.3s;
}

.sa-progress-line {
    flex: 1;
    height: 3px;
    background: #e5e7eb;
    margin: 0 0.5rem;
    position: relative;
    top: -12px;
}

.sa-progress-line.completed {
    background: #10b981;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .sa-wrapper {
        padding: 1rem 0.5rem 3rem;
    }

    .sa-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .sa-card h1 {
        font-size: 1.3rem;
    }

    .sa-btn-row {
        flex-direction: column;
    }

    .sa-btn-row button {
        width: 100%;
    }

    .sa-header-bar {
        flex-direction: column;
        text-align: center;
    }
}
