/* Scoped styles for Mentorships Page */
.mentorships-page {
    font-family: 'Inter', sans-serif;
    /* Assuming Inter or system font */
    color: #1A3B5C;
    /* Dark blueish text */
}

/* Header & Breadcrumbs */
.mentorships-page .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.mentorships-page .breadcrumbs {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6C757D;
}

.mentorships-page .breadcrumbs .current {
    color: #1A3B5C;
}

.mentorships-page .btn-new-mentorship {
    background-color: #00Bfa5;
    /* Teal/Cyan */
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1.5rem;
    display: inline-block;
    text-transform: uppercase;
    margin-top: 0;
}

.mentorships-page .btn-new-mentorship:hover {
    background-color: #00a690;
    color: white;
    text-decoration: none;
}

/* Hero Banner */
.mentorships-page .hero-banner {
    background-color: #E8EDF5;
    /* Light blue-gray */
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.mentorships-page .hero-banner h2 {
    color: #1A3B5C;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.mentorships-page .hero-banner p {
    color: #6C757D;
    margin-bottom: 1.5rem;
}

.mentorships-page .hero-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.mentorships-page .hero-tag {
    background-color: white;
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    color: #1A3B5C;
    font-size: 0.95rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Card Grid */
.mentorships-page .card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* Mentorship Card */
.mentorships-page .mentorship-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mentorships-page .badge-1-1 {
    background-color: #E0F2F1;
    /* Light Teal */
    color: #00Bfa5;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    align-self: flex-start;
    margin-bottom: 1rem;
    display: inline-block;
}

.mentorships-page .card-date {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1A3B5C;
    margin-bottom: 0.25rem;
}

.mentorships-page .card-time {
    font-weight: 400;
}

/* Mentorship Creation Form Styles */

.mentorship-topic-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.topic-radio-card {
    flex: 1 1 300px;
    /* Allow growing */
    max-width: 400px;
    /* Prevent being too wide */
    /* width: 300px; REMOVED fixed width */
}

/* ... existing media query ... */

/* New class for selected teacher button */
.btn-institutional-selected {
    background-color: #00b0ba !important;
    border-color: #00b0ba !important;
    color: white !important;
}

.btn-institutional-selected:hover {
    background-color: #0098a1 !important;
    border-color: #0098a1 !important;
}

/* Custom outline button for teachers */
/* Custom hover override for teacher buttons */
.teacher-card-btn:hover {
    background-color: #00b0ba !important;
    /* Institutional Color */
    border-color: #00b0ba !important;
    color: white !important;
}

.teacher-card-btn:hover .text-muted,
.teacher-card-btn:hover .opacity-75 {
    color: white !important;
    opacity: 0.9 !important;
}

@media (max-width: 600px) {
    .topic-radio-card {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }
}

.topic-radio-card {
    position: relative;
    cursor: pointer;
    display: block;
    height: 100%;
}

.topic-radio-card .card-content {
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.topic-radio-card .topic-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1A3B5C;
}

.topic-radio-card .topic-description {
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.5;
}

/* Icon Styles */
.topic-radio-card .check-icon {
    display: none;
    font-size: 1.5rem;
    color: white;
}

.topic-radio-card .uncheck-icon {
    display: block;
    font-size: 1.5rem;
    color: #e5e7eb;
}

/* Hide the actual inputs */
.topic-radio-input,
.subtopics-list input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Selected State */
.topic-radio-input:checked+.card-content {
    background-color: #00b0ba;
    border-color: #00b0ba;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.topic-radio-input:checked+.card-content .check-icon {
    display: block;
}

.topic-radio-input:checked+.card-content .uncheck-icon {
    display: none;
}

.topic-radio-input:checked+.card-content .topic-description,
.topic-radio-input:checked+.card-content .topic-name {
    color: white;
}

/* Subtopics Styles */
.subtopics-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.custom-checkbox-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: #1A3B5C;
    /* Dark blue text */
    transition: all 0.2s;
    font-size: 1.05rem;
}

/* Remove the active background for label */
.custom-checkbox-label:has(input:checked) {
    background-color: transparent;
    border-color: transparent;
    color: #1A3B5C;
    /* Keep text color */
}

/* Custom Checkbox Box */
.custom-checkbox-label::before {
    content: '';
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid #d1d5db;
    /* Light grey border */
    border-radius: 4px;
    background-color: #f3f4f6;
    /* Light grey background */
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Checked State for Checkbox Box */
.custom-checkbox-label:has(input:checked)::before {
    background-color: #00Bfa5;
    border-color: #00Bfa5;
    content: '✓';
    color: white;
    font-size: 1rem;
    font-weight: bold;
}

/* Mentorships Styles */

.mentorships-page .card-topics {
    color: #1A3B5C;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.mentorships-page .topic-separator {
    color: #d1d5db;
    margin: 0 0.5rem;
}

.mentorships-page .subtopics {
    color: #6B7280;
}

.mentorships-page .btn-attend {
    border: 1px solid #00Bfa5;
    color: #00Bfa5;
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
    width: fit-content;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.mentorships-page .btn-attend:hover {
    background-color: #00Bfa5;
    color: white;
    text-decoration: none;
}

.mentorships-page .outline-button--disabled {
    border-color: #d1d5db;
    color: #9ca3af;
    background-color: transparent;
    cursor: not-allowed;
    pointer-events: none;
}

.mentorships-page .btn-attend i {
    font-size: 1rem;
}

/* Section Header */
.mentorships-page .section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1A3B5C;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
    padding-bottom: 0.5rem;
    display: inline-block;
    padding-right: 2rem;
}

.mentorships-page .section-divider {
    border-bottom: 1px solid #E5E7EB;
    margin-top: -1.6rem;
    margin-bottom: 2rem;
    z-index: -1;
}

.mentorships-page .empty-state {
    text-align: center;
    color: #9CA3AF;
    font-weight: 500;
    padding: 3rem;
}

/* Status Badges */
.mentorships-page .status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
    text-transform: uppercase;
    margin-top: 0;
}

.mentorships-page .status-badge--draft {
    background-color: #f3f4f6;
    color: #6b7280;
}

.mentorships-page .status-badge--payment_pending {
    background-color: #fef3c7;
    color: #d97706;
}

.mentorships-page .status-badge--not_scheduled {
    background-color: #ffedd5;
    color: #c2410c;
}

.mentorships-page .status-badge--scheduled {
    background-color: #dbeafe;
    color: #2563eb;
}

.mentorships-page .status-badge--completed {
    background-color: #d1fae5;
    color: #059669;
}

.mentorships-page .status-badge--cancelled {
    background-color: #fee2e2;
    color: #dc2626;
}

/* Cancel Button */
.mentorships-page .btn-cancel {
    border: 1px solid #d1d5db;
    color: #6b7280;
    background: transparent;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mentorships-page .btn-cancel:hover {
    border-color: #9ca3af;
    color: #374151;
    background-color: #f9fafb;
}

/* Header Cancel Button (Matches Guardar button style) */
.btn-cancel--header {
    border: 1px solid #00b0ba;
    color: #00b0ba;
    background: transparent;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-cancel--header:hover {
    background-color: #00b0ba;
    color: white;
    text-decoration: none;
}