﻿:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --bg-color: #f8fafc;
    --border-color: #cbd5e1;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;
}

/** {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
*/
/*body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #f1f5f9;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}*/

/*.card-container {
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 520px;
    padding: 28px;
}
*/
/*.card-header {
    margin-bottom: 20px;
    text-align: center;
}

    .card-header h2 {
        font-size: 1.25rem;
        color: var(--text-dark);
        font-weight: 700;
    }

    .card-header p {
        font-size: 0.875rem;
        color: var(--text-muted);
        margin-top: 4px;
    }*/

.student-photo-uploader {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hidden-input {
    display: none !important;
}

/* Utilidad para ocultar completamente elementos */
.d-none {
    display: none !important;
}

/* ZONA DE CARGA FULL-CONTAINER */
.upload-dropzone {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    height: 320px;
    width: 100%;
    background-color: var(--bg-color);
    cursor: pointer;
    transition: all 0.25s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .upload-dropzone:hover, .upload-dropzone.drag-over {
        border-color: var(--primary);
        background-color: var(--primary-light);
    }

/* IMAGEN QUE OCUPA TODO EL CONTENEDOR */
.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* MENSAJE INICIAL / INSTRUCCIONES */
.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    gap: 12px;
    width: 100%;
    height: 100%;
}

.placeholder-icon {
    width: 56px;
    height: 56px;
    color: #94a3b8;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* CAPA HOVER CUANDO YA HAY UNA IMAGEN CARGADA */
.overlay-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.65);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(2px);
}

.upload-dropzone.has-image:hover .overlay-hover {
    opacity: 1;
}

.overlay-hover svg {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
    
.upload-instructions .primary-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
}

.upload-instructions .secondary-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/*.btn-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 500;
}*/

.file-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.75rem;
    color: var(--text-light);
}

.upload-actions {
    display: flex;
    gap: 10px;
}



/*.btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

    .btn-primary:hover {
        background-color: var(--primary-hover);
    }

.btn-secondary {
    background-color: #e2e8f0;
    color: #475569;
}

    .btn-secondary:hover {
        background-color: #cbd5e1;
    }
*/






/* Status Toast Alert */
.status-message {
    padding: 10px;
    border-radius: 6px;
    font-size: 0.825rem;
    text-align: center;
}

    .status-message.success {
        background-color: #dcfce7;
        color: #166534;
    }

    .status-message.error {
        background-color: #fee2e2;
        color: #991b1b;
    }
