/* style.css - Premium Glassmorphism Design */

:root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --blur: 10px;
    --primary-color: #4a90e2;
    --text-color: #333;
    --text-light: #f5f5f5;
    --card-bg: rgba(255, 255, 255, 0.25);
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Background Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: move 10s infinite alternate;
}

.shape-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: #ff9a9e;
}

.shape-2 {
    bottom: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: #a18cd1;
}

@keyframes move {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-light);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Filters */
.filters {
    background: rgba(0, 0, 0, 0.2);
    /* Darker tinted background for better contrast */
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: var(--glass-shadow);
}

.input-group {
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}

input,
select,
button {
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    /* Changed specifically for dark bg */
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

/* Fix for company selector options - ensure they are readable */
select option {
    background-color: white;
    color: #333;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input:focus,
select:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Make date picker icon white-ish if possible or rely on browser */
::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

button {
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    font-weight: 600;
    margin-top: auto;
    /* Align with inputs */
}

button:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Summary Board */
.summary-board {
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.summary-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--glass-shadow);
    display: inline-block;
    min-width: 200px;
}

.summary-card h3 {
    margin: 0;
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.summary-card p {
    margin: 0;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Content Area */
#planning-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.resource-group {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow);
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.resource-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    /* Indicates clickable */
    user-select: none;
    transition: background 0.2s;
}

.resource-header:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Chevron indicator */
.resource-header::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.resource-header.collapsed::after {
    transform: rotate(-90deg);
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    transition: all 0.3s ease;
}

.slots-grid.hidden {
    display: none;
}

.resource-name {
    font-size: 1.5rem;
    font-weight: 600;
}

.resource-count {
    background: rgba(0, 0, 0, 0.2);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.slot-card {
    background: var(--card-bg);
    /* Lighter bg for cards */
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.2s;
    /* Since card bg is light, text should be dark for readability */
    color: #333;
}

.slot-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.4);
}

.slot-detail {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

.slot-label {
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.1rem;
}

.empty-state {
    text-align: center;
    color: var(--text-light);
    padding: 3rem;
    font-size: 1.2rem;
}

/* Nested Grouping Styles */
.group-container {
    padding-left: 1rem;
    margin-top: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.group-container.hidden {
    display: none;
}

.group-header {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-light);
    transition: background 0.2s;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.group-header:hover {
    background: rgba(255, 255, 255, 0.25);
}

.group-header::after {
    content: '▼';
    font-size: 0.7rem;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.group-header.collapsed::after {
    transform: rotate(-90deg);
}

/* Specific Level Styling */
.header-program {
    /* Level 1: Programa */
    background: rgba(74, 144, 226, 0.3);
    /* Stronger blue */
    font-weight: 700;
    color: white;
}

.header-day {
    /* Level 2: Day Type */
    background: rgba(74, 144, 226, 0.15);
    font-weight: 600;
    margin-left: 0.5rem;
}

.header-sede {
    /* Level 3: Sede */
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    margin-left: 1rem;
}

.header-salon {
    /* Level 4: Salon */
    background: rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    font-style: italic;
    margin-left: 1.5rem;
}

/* Adjust card grid when deep inside */
.slots-grid-nested {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    padding: 1rem 0 1rem 2rem;
}

.slots-grid-nested.hidden {
    display: none;
}

/* Dialog Styles */
dialog {
    background: white;
    border-radius: 12px;
    border: none;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin: auto;
    width: 100%;
    max-width: 350px;
    color: #333;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

dialog h2,
dialog h3 {
    margin-top: 0;
    color: #333;
    margin-bottom: 0.5rem;
}

dialog p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

dialog label {
    display: block;
    color: #333;
    margin-bottom: 0.5rem;
    text-align: left;
}

dialog input {
    background: white;
    border: 1px solid #ccc;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    /* Fix padding issues */
    margin-bottom: 1.5rem;
}

dialog input:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-primary {
    background: var(--primary-color) !important;
    color: white !important;
}

.btn-danger {
    background: #d9534f !important;
    color: white !important;
}

.btn-secondary {
    background: #ccc !important;
    color: #333 !important;
}

dialog button {
    margin-top: 0;
}

#login-error {
    color: #d9534f;
    font-size: 0.85rem;
    margin-top: -1rem;
    margin-bottom: 1rem;
    display: none;
    text-align: left;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary-color);
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Grouping Options Panel */
.grouping-options {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 0.8rem 1.5rem;
    /* Slimmer padding */
    margin-bottom: 2rem;
}

.grouping-main-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.grouping-header h3 {
    display: none;
    /* Hide header text to make it cleaner/slimmer */
}

/* Toggle Styles adjustments */
.grouping-mode {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    /* Remove padding */
    background: transparent;
    /* Remove background */
    border: none;
    /* Remove border */
}

.mode-label {
    font-size: 0.9rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    /* Remove underline */
    opacity: 0.8;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.btn-text:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

.advanced-options {
    animation: fadeIn 0.3s ease;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.advanced-actions {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
    /* Button to right */
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#arrow-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

#arrow-icon.rotate {
    transform: rotate(180deg);
}

/* Restored Styles for Advanced Inputs */
.grouping-hierarchy {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.hierarchy-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hierarchy-item label {
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.9;
}

.group-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.group-select:hover {
    background: rgba(255, 255, 255, 0.2);
}

.group-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

.group-select option {
    background: #5a67d8;
    color: white;
}

.btn-apply {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

.btn-apply:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .grouping-hierarchy {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .grouping-hierarchy {
        grid-template-columns: 1fr;
    }

    .grouping-main-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* Process Flow Container */
.process-steps-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
}

/* Individual Steps - High Contrast */
.flow-step {
    background: rgba(30, 30, 50, 0.85);
    /* Much darker and opaque */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    /* Consistent radius */
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: white;
    margin-top: 15px;
    display: none;
    /* Hidden by default controlled by JS */
}

/* Step Headers */
.flow-step h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #ffd700;
    /* Gold/Yellow for clear step headings */
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

/* Improve Filters Section to match */
.filters {
    background: rgba(40, 40, 60, 0.7);
    /* Darker than before */
    border-color: rgba(255, 255, 255, 0.2);
}

/* Improve Grouping Options Section */
.grouping-options {
    background: rgba(40, 40, 60, 0.7);
    margin-top: 2rem;
    /* Ensure separation */
}

/* Ensure Inputs within steps have high contrast */
.flow-step input[type="text"],
.flow-step input[type="number"],
.flow-step input[type="file"] {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: 1px solid #ccc;
    padding: 0.6rem;
    border-radius: 4px;
}

.flow-step input::placeholder {
    color: #666;
}

.flow-step p {
    color: #ddd;
    font-size: 0.95rem;
}

/* Animation */
.flow-step {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Action Buttons Section (Main Page) */
.action-buttons-section {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
    flex-wrap: wrap;
}

.btn-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    color: white;
    min-width: 200px;
    justify-content: center;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.btn-action:active {
    transform: translateY(0);
}

.btn-action-icon {
    font-size: 1.4rem;
}

.btn-action-text {
    font-size: 1rem;
}

.btn-verificacion {
    background: linear-gradient(135deg, rgba(224, 168, 0, 0.7), rgba(255, 193, 7, 0.5));
    border-color: rgba(255, 193, 7, 0.4);
}

.btn-verificacion:hover {
    background: linear-gradient(135deg, rgba(224, 168, 0, 0.9), rgba(255, 193, 7, 0.7));
}

.btn-confirmacion {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.7), rgba(46, 204, 113, 0.5));
    border-color: rgba(40, 167, 69, 0.4);
}

.btn-confirmacion:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.9), rgba(46, 204, 113, 0.7));
}

/* Info Bar (Confirmation Page) */
.info-bar {
    background: rgba(30, 30, 50, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.5s ease-out;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.info-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.info-item span:last-child {
    color: white;
    font-weight: 600;
}

/* Back Button */
.back-button-container {
    margin-top: 2rem;
    text-align: center;
}

.btn-back {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .action-buttons-section {
        flex-direction: column;
        align-items: center;
    }

    .btn-action {
        width: 100%;
        max-width: 300px;
    }

    .info-bar {
        flex-direction: column;
        gap: 0.8rem;
    }
}

/* CSS Updates Verificacion Manual */
.sede-block {
    margin-top: 2rem;
    border-radius: 12px;
}

.sede-title {
    color: #f5f5f5;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px;
    border-radius: 8px;
}

.verif-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.verif-table th,
.verif-table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    text-align: center;
}

.verif-table th {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.verif-table td {
    color: #fff;
}

.verif-input {
    width: 90%;
    padding: 0.4rem;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background 0.3s;
    color: #000;
    font-weight: 600;
}

.verif-input.empty {
    background: rgba(220, 53, 69, 0.4);
    border: 2px solid rgba(220, 53, 69, 0.8)
}

.verif-input.filled {
    background: rgba(255, 255, 255, 0.9);
    border: none;
}

.v-total {
    font-weight: bold;
    font-size: 1.1rem;
}

.comp-sede-block {
    margin-bottom: 2rem;
    background: rgba(30, 30, 50, 0.85);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.comp-sede-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.comp-prog-block {
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.comp-prog-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    border-radius: 8px;
    align-items: center;
}

.comp-title-row {
    flex: 1;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.comp-hours-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.badg-sys,
.badg-ctrl {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.3);
}

.match-green {
    background: rgba(40, 167, 69, 0.2);
    border-left: 5px solid #28a745;
}

.match-red {
    background: rgba(220, 53, 69, 0.2);
    border-left: 5px solid #dc3545;
}

.comp-details {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.comp-item-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.comp-docente {
    color: #aad;
    font-weight: bold;
}

.comp-materia {
    color: #dda;
    margin-left: 1rem;
    font-style: italic;
}

.comp-expand {
    display: inline-block;
    transition: transform 0.3s;
    font-size: 0.8em;
}

.comp-expand.collapsed {
    transform: rotate(-90deg);
}

/* CSS Updates Verificacion Manual */
.sede-block {
    margin-top: 2rem;
    border-radius: 12px;
}

.sede-title {
    color: #f5f5f5;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px;
    border-radius: 8px;
}

.verif-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.verif-table th,
.verif-table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    text-align: center;
}

.verif-table th {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.verif-table td {
    color: #fff;
}

.verif-input {
    width: 90%;
    padding: 0.4rem;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background 0.3s;
    color: #000;
    font-weight: 600;
}

.verif-input.empty {
    background: rgba(220, 53, 69, 0.4);
    border: 2px solid rgba(220, 53, 69, 0.8)
}

.verif-input.filled {
    background: rgba(255, 255, 255, 0.9);
    border: none;
}

.v-total {
    font-weight: bold;
    font-size: 1.1rem;
}

.comp-sede-block {
    margin-bottom: 2rem;
    background: rgba(30, 30, 50, 0.85);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.comp-sede-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.comp-prog-block {
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.comp-prog-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    border-radius: 8px;
    align-items: center;
}

.comp-title-row {
    flex: 1;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.comp-hours-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.badg-sys,
.badg-ctrl {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.3);
}

.match-green {
    background: rgba(40, 167, 69, 0.2);
    border-left: 5px solid #28a745;
}

.match-red {
    background: rgba(220, 53, 69, 0.2);
    border-left: 5px solid #dc3545;
}

.comp-details {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.comp-item-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.comp-docente {
    color: #aad;
    font-weight: bold;
}

.comp-materia {
    color: #dda;
    margin-left: 1rem;
    font-style: italic;
}

.comp-expand {
    display: inline-block;
    transition: transform 0.3s;
    font-size: 0.8em;
}

.comp-expand.collapsed {
    transform: rotate(-90deg);
}

/* CSS Updates Verificacion Manual */
.sede-block {
    margin-top: 2rem;
    border-radius: 12px;
}

.sede-title {
    color: #f5f5f5;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px;
    border-radius: 8px;
}

.verif-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.verif-table th,
.verif-table td {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem;
    text-align: center;
}

.verif-table th {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.verif-table td {
    color: #fff;
}

.verif-input {
    width: 90%;
    padding: 0.4rem;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    transition: background 0.3s;
    color: #000;
    font-weight: 600;
}

.verif-input.empty {
    background: rgba(220, 53, 69, 0.4);
    border: 2px solid rgba(220, 53, 69, 0.8)
}

.verif-input.filled {
    background: rgba(255, 255, 255, 0.9);
    border: none;
}

.v-total {
    font-weight: bold;
    font-size: 1.1rem;
}

.comp-sede-block {
    margin-bottom: 2rem;
    background: rgba(30, 30, 50, 0.85);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.comp-sede-title {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.comp-prog-block {
    margin-bottom: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.comp-prog-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    border-radius: 8px;
    align-items: center;
}

.comp-title-row {
    flex: 1;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.comp-hours-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.badg-sys,
.badg-ctrl {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    background: rgba(0, 0, 0, 0.3);
}

.match-green {
    background: rgba(40, 167, 69, 0.2);
    border-left: 5px solid #28a745;
}

.match-red {
    background: rgba(220, 53, 69, 0.2);
    border-left: 5px solid #dc3545;
}

.comp-details {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.1);
}

.comp-item-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.comp-docente {
    color: #aad;
    font-weight: bold;
}

.comp-materia {
    color: #dda;
    margin-left: 1rem;
    font-style: italic;
}

.comp-expand {
    display: inline-block;
    transition: transform 0.3s;
    font-size: 0.8em;
}

.comp-expand.collapsed {
    transform: rotate(-90deg);
}