/* ============================================================
   Permission Modal
   ============================================================ */
.perm-modal-content {
    max-height: 60vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0;
}
.modal-large {
    max-width: 720px;
    width: 95%;
}

/* Nav separator */
.nav-separator {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 16px;
}

/* ============================================================
   Admin Platform
   ============================================================ */

.admin-platform-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
}
.admin-platform-tab {
    padding: 10px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
}
.admin-platform-tab:hover {
    color: #374151;
}
.admin-platform-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.platform-table-container {
    overflow-x: auto;
}
.platform-role-select,
.team-role-select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border, #d1d5db);
    background: var(--input-bg, #fff);
    color: var(--text, #1f2937);
    font-size: 13px;
    cursor: pointer;
    min-width: 140px;
}
.platform-role-select:disabled,
.team-role-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.platform-role-select:focus,
.team-role-select:focus {
    outline: none;
    border-color: var(--primary, #6366f1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* Admin toggle switch */
.team-admin-toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    cursor: pointer;
    margin: 0;
}
.team-admin-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.team-admin-slider {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 20px;
    transition: background 0.2s;
}
.team-admin-slider::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.team-admin-toggle input:checked + .team-admin-slider {
    background: var(--primary, #3b82f6);
}
.team-admin-toggle input:checked + .team-admin-slider::before {
    transform: translateX(16px);
}

/* Badges for user types */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}
.badge-localizador_empresa { background: #dbeafe; color: #1e40af; }
.badge-localizador_individual { background: #e0e7ff; color: #3730a3; }
.badge-film_commission { background: #fef3c7; color: #92400e; }
.badge-tecnico { background: #fce7f3; color: #9d174d; }
.badge-productora { background: #d1fae5; color: #065f46; }
.badge-proveedor { background: var(--warning-light, #fef3c7); color: var(--warning-dark, #92400e); }
.badge-admin { background: #fee2e2; color: #991b1b; }
.badge-member { background: #f3f4f6; color: #374151; }

.text-muted { color: #9ca3af; }

.sl-projects-filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.sl-projects-filter-bar input,
.sl-projects-filter-bar select {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.85rem;
}
.sl-projects-filter-bar input { flex: 1; min-width: 200px; }

/* Calendar */
.sl-calendar-container { max-width: 1200px; }
.sl-cal-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.sl-cal-filters select {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.85rem;
}
.sl-cal-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Professional Profile Section */
.profile-card-full { grid-column: 1 / -1; }
.profile-cv-upload {
    display: flex;
    align-items: center;
    gap: 8px;
}
.prof-cv-status { margin-top: 6px; }
.prof-cv-nofile { font-size: 0.82rem; color: var(--text-muted); }
.prof-cv-uploading { font-size: 0.82rem; color: var(--primary); }
.prof-cv-file {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}
.prof-cv-file-icon { font-size: 1.1rem; }
.prof-cv-file-name {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.prof-cv-btn {
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-primary);
    font-size: 0.78rem;
    cursor: pointer;
    color: var(--primary);
    transition: background 0.15s;
}
.prof-cv-btn:hover { background: #eef2ff; }
.prof-cv-btn-delete {
    color: var(--error);
    border-color: var(--error);
    border-radius: 999px;
    font-size: 1rem;
    padding: 2px 8px;
    line-height: 1;
}
.prof-cv-btn-delete:hover { background: var(--error-light); }

/* Project History */
.profile-project-history { display: flex; flex-direction: column; gap: 8px; }

/* Ratings */
.profile-ratings { display: flex; flex-direction: column; gap: 8px; }

