/* =====================================================================
   invitar-calificar-ssr.css – SSR styles for "Invitar a Calificar"
   ===================================================================== */

/* ── Stack navigation cards ── */
.invitar-calificar-stack-container {
    margin: 0 auto;
    width: 100%;
}

.nav-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.nav-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--color-border-container, #E5E7EB);
    transition: background-color 0.15s;
    cursor: pointer;
}

.nav-card:hover {
    background-color: var(--color-neutral-50, #f9fafb);
}

.nav-card-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.nav-card-title {
    flex: 1;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--color-body-text, #374151);
}

.nav-card-arrow {
    color: var(--color-neutral-400, #9CA3AF);
    font-size: 16px;
}

/* ── Brand selector (SSR-style dropdown) ── */
.sf-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--color-body-text, #374151);
    font-family: 'Nunito Sans', sans-serif;
}

.sf-dropdown {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border-container, #E5E7EB);
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Nunito Sans', sans-serif;
    background: white;
    color: var(--color-body-text, #374151);
    appearance: auto;
}

.sf-dropdown:focus {
    outline: 2px solid var(--color-primary, #10B981);
    border-color: var(--color-primary, #10B981);
}

.sf-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border-container, #E5E7EB);
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Nunito Sans', sans-serif;
    background: white;
    color: var(--color-body-text, #374151);
}

.sf-input:focus {
    outline: 2px solid var(--color-primary, #10B981);
    border-color: var(--color-primary, #10B981);
}

.sf-field-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

/* ── Buttons ── */
.btn-primary-ds {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 24px;
    border: none;
    border-radius: 4px;
    background-color: var(--color-primary, #10B981);
    color: white;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
    cursor: pointer;
    transition: background-color 0.15s;
    text-decoration: none;
}

.btn-primary-ds:hover {
    background-color: var(--color-primary-dark, #059669);
}

.btn-primary-ds:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary-outlined-ds {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 24px;
    border: 1px solid var(--color-primary, #10B981);
    border-radius: 4px;
    background-color: transparent;
    color: var(--color-primary, #10B981);
    font-size: 14px;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    text-decoration: none;
}

.btn-secondary-outlined-ds:hover {
    background-color: var(--color-primary-light, #D1FAE5);
}

.btn-secondary-outlined-ds:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Surface / Container ── */
.surface-outlined {
    border: 1px solid var(--color-border-container, #E5E7EB);
    border-radius: 8px;
    background: white;
}

/* ── Alert info ── */
.alert-info-ds {
    padding: 16px;
    border-radius: 8px;
    background-color: var(--color-info-bg, #EFF6FF);
    border: 1px solid var(--color-info-border, #BFDBFE);
    color: var(--color-info-text, #1E40AF);
    font-size: 14px;
    font-family: 'Nunito Sans', sans-serif;
}

.alert-info-ds b {
    display: block;
    margin-bottom: 4px;
}

.alert-info-ds p {
    margin: 0;
}

/* ── NFC Page ── */
.inv-calificar-nfc-page {
    display: flex;
    padding-bottom: 24px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    align-self: stretch;
}

.inv-calificar-nfc-page img {
    width: 350px;
    height: 350px;
}

.timer-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.timer-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.ring-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 10;
}

.ring {
    fill: none;
    stroke: #333;
    stroke-width: 10;
    transition: stroke-dashoffset 1s linear;
}

.timer-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
}

/* ── QR Loading ── */
.qr-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 16px;
    min-height: 200px;
    justify-content: center;
}

.qr-loading-step-text {
    font-size: 0.9rem;
    color: var(--color-neutral-600, #6b7280);
    text-align: center;
}

/* ── Link box ── */
.link-box {
    padding: 12px 16px;
    background: var(--color-neutral-50, #f9fafb);
    border: 1px solid var(--color-border-container, #E5E7EB);
    border-radius: 4px;
    word-break: break-all;
    font-family: monospace;
    font-size: 13px;
    color: var(--color-body-text, #374151);
}

/* ── Modal ── */
.ssr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ssr-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.ssr-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border-container, #E5E7EB);
    font-weight: 600;
    font-size: 16px;
}

.ssr-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-neutral-500, #6B7280);
    line-height: 1;
}

.ssr-modal-body {
    padding: 20px;
}

/* ── Toast ── */
.ssr-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary, #10B981);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
    z-index: 10001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s;
}

.ssr-toast.error {
    background: var(--color-error, #EF4444);
}

/* ── Phone picker (Message page) ── */
.celular-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.celular-content {
    display: flex;
    flex-direction: column;
}

/* ── Utilities ── */
.w-100 {
    width: 100%;
}

.body-regular {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--color-body-text, #374151);
    margin: 0;
}

/* ── Pantalla responsive ── */
@media (max-width: 390px) {
    #invitarPantallaTexto {
        display: none !important;
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}
