/* ============================================
   GESTION TRABAJOS ESTUDIANTES - STYLES V2.6 (Correcciones Visuales)
   ============================================ */

/* Variables CSS */
:root {
    --gte-primary: #6366f1;
    --gte-primary-hover: #4f46e5;
    --gte-success: #10b981;
    --gte-bg-light: #f9fafb;
    --gte-border: #e5e7eb;
    --gte-text: #1f2937;
}

/* Contenedores */
.gte-formulario-container,
.gte-panel-profesor,
.gte-mis-calificaciones {
    max-width: 900px;
    margin: 2rem auto;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--gte-text);
}

.gte-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid var(--gte-border);
}

/* TABLAS COMPACTAS */
.gte-table-responsive {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--gte-border);
    background: white;
    margin-top: 1rem;
}

.gte-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.gte-table th {
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--gte-border);
}

.gte-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--gte-border);
    vertical-align: middle;
}

.gte-table tr:hover {
    background-color: #f9fafb;
}

/* INPUTS EN TABLA */
.gte-input-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gte-input-nota {
    width: 110px !important;
    min-width: 110px;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-weight: 700;
    text-align: center;
    font-size: 1rem;
    transition: all 0.2s;
    color: #4f46e5;
}

.gte-input-nota:focus {
    outline: none;
    border-color: var(--gte-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.gte-input-obs {
    width: 100%;
    min-width: 180px;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    resize: vertical;
    height: 38px;
    font-family: sans-serif;
    transition: border-color 0.2s;
}

.gte-input-obs:focus {
    border-color: var(--gte-primary);
    outline: none;
}

/* FORMULARIO ESTUDIANTE MODERNO */
.gte-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

.gte-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gte-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    line-height: 1.2;
}

.gte-points-tag {
    background: #e0e7ff;
    color: #4338ca;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.gte-meta-info {
    margin-top: 5px;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Upload Area Mejorada */
.gte-form-group {
    margin-bottom: 1.5rem;
}

.gte-form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #1f2937;
    font-size: 1rem;
}

.gte-upload-block {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #f8fafc;
    transition: all 0.2s;
    cursor: pointer;
}

.gte-upload-block:hover {
    border-color: var(--gte-primary);
    background: #eff6ff;
}

.gte-upload-block.gte-drag-over {
    border-color: #4F46E5;
    background: #EEF2FF;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.gte-upload-btn-fake {
    display: block;
    margin: 0 auto 10px auto;
    background: white;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    width: fit-content;
    text-align: center;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gte-upload-hint {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
}

.gte-input-file-real {
    margin-top: 15px;
    display: block;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Comentarios Full Width */
.gte-textarea-modern {
    width: 100%;
    display: block;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    font-size: 1rem;
}

/* Botón Derecha */
.gte-submit-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* USER INFO */
.gte-user-info {
    display: flex;
    flex-direction: column;
}

.gte-user-name {
    font-weight: 600;
    color: #111827;
}

.gte-user-meta {
    font-size: 0.8rem;
    color: #6B7280;
}

.gte-link {
    color: var(--gte-primary);
    text-decoration: none;
    font-weight: 500;
}

/* BOTONES */
.gte-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    font-size: 1rem;
    gap: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gte-btn-primary {
    background: var(--gte-primary);
    color: white;
}

.gte-btn-primary:hover {
    background: var(--gte-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gte-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.gte-btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* ROW HIGHLIGHT */
.gte-row-calificado {
    background-color: #f0fdf4 !important;
}

.gte-row-calificado td {
    border-bottom-color: #d1fae5;
}

.gte-row-calificado .gte-input-nota {
    border-color: #10B981;
    background-color: #ffffff;
    color: #047857;
}

/* BADGES */
.gte-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gte-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.gte-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.gte-badge-info {
    background: #dbeafe;
    color: #1e40af;
}

/* MENSAJES */
.gte-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
}

.gte-message-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.gte-message-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* COPY BOX */
.gte-copy-box {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    margin-bottom: 10px;
}

.gte-copy-code {
    flex-grow: 1;
    font-family: monospace;
    font-size: 1.1em;
    color: #334155;
    margin-right: 10px;
}

.gte-copy-btn {
    background: #fff;
    border: 1px solid #cbd5e1;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    color: #475569;
}

/* BOTONES ICONO (ACTION COLUMN) */
.gte-btn-icon-save,
.gte-btn-icon-delete {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 1.5rem !important;
    padding: 6px !important;
    border-radius: 6px;
    transition: transform 0.1s;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #4F46E5;
}

.gte-btn-icon-save:hover {
    background-color: #dcfce7;
    transform: scale(1.1);
    color: #16a34a;
}

.gte-btn-icon-delete {
    font-size: 1.3rem;
    opacity: 0.6;
    color: #dc2626;
}

.gte-btn-icon-delete:hover {
    background-color: #fee2e2;
    transform: scale(1.1);
    opacity: 1;
}

.gte-icon-comment {
    cursor: pointer;
    font-size: 1.2rem;
    transition: transform 0.2s;
    opacity: 0.8;
    margin-left: 5px;
}

.gte-icon-comment:hover {
    transform: scale(1.2);
    opacity: 1;
}

.gte-link-comment {
    font-size: 0.8rem;
    color: #4F46E5;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #EEF2FF;
    padding: 2px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.gte-link-comment:hover {
    background: #4F46E5;
    color: white;
}