/**
 * CastingCopii.ro - Main Stylesheet (UPGRADED v3.0 - TABLE VIEW)
 * Design: Verde Rolex + Alb + Minimalist
 * Features: Sidebar, Pagination, Profile Page, Lightbox, TABLE VIEW
 * MODIFICĂRI: Adăugate stiluri pentru table view cu fotografii multiple
 */

/* ============================================
   CSS RESET & BASE
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors - Primary */
    --white: #FFFFFF;
    --green-rolex: #00563B;
    --green-light: #E8F5E9;
    --green-hover: #003d29;
    
    /* Colors - Neutrals */
    --gray-lightest: #F5F5F5;
    --gray-light: #E0E0E0;
    --gray: #9E9E9E;
    --gray-dark: #666666;
    --text: #333333;
    
    /* Colors - Status */
    --success: #4CAF50;
    --error: #F44336;
    --warning: #FF9800;
    
    /* Typography */
    --font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-xs: 14px;
    --text-sm: 16px;
    --text-base: 18px;
    --text-lg: 20px;
    --text-xl: 24px;
    --text-2xl: 32px;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    
    /* Layout */
    --container-max: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
    
    /* Admin Sidebar */
    --sidebar-width: 320px;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--text-sm);
    line-height: 1.6;
    color: var(--text);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   HEADER
   ============================================ */

.header {
    background-color: var(--green-rolex);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    text-align: center;
}

.logo {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.tagline {
    font-size: var(--text-base);
    font-weight: 400;
    opacity: 0.9;
}

.tagline-link {
    color: var(--white);
    text-decoration: underline;
    transition: var(--transition);
}

.tagline-link:hover {
    opacity: 0.8;
}

/* ============================================
   ADMIN HEADER
   ============================================ */

.admin-header {
    background: #00563B;
    color: white;
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-logo {
    font-size: 20px;
    font-weight: 700;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-username {
    font-size: 14px;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
}

/* ============================================
   ADMIN SIDEBAR LAYOUT
   ============================================ */

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    width: var(--sidebar-width);
    height: calc(100vh - 64px);
    background: white;
    border-right: 1px solid var(--gray-light);
    overflow-y: auto;
    overflow-x: hidden;
    transition: transform 0.3s ease;
    z-index: 100;
    padding: 24px;
}

body.sidebar-closed .admin-sidebar {
    transform: translateX(calc(-1 * var(--sidebar-width)));
}

.sidebar-toggle {
    position: absolute;
    right: -48px;
    top: 20px;
    width: 48px;
    height: 48px;
    background: var(--green-rolex);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: 0.3s;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.sidebar-toggle:hover {
    background: var(--green-hover);
}

.toggle-icon {
    line-height: 1;
}

.sidebar-content {
    padding-right: 10px;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--green-rolex);
    margin-bottom: 20px;
}

.sidebar-actions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
}

.admin-main {
    margin-left: var(--sidebar-width);
    padding: 32px;
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 64px);
    background: var(--gray-lightest);
}

body.sidebar-closed .admin-main {
    margin-left: 0;
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */

.dashboard-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.dashboard-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

/* Stats Card - MINIMALIST (NOU) */
.stats-card-minimal {
    background: white;
    border: 2px solid var(--green-rolex);
    border-radius: 8px;
    padding: 12px 20px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.stats-icon {
    font-size: 24px;
}

.stats-text {
    font-size: 16px;
    color: #333;
    flex: 1;
}

.stats-text strong {
    color: var(--green-rolex);
    font-size: 20px;
    font-weight: 700;
}

.stats-range {
    font-size: 14px;
    color: #666;
    padding: 4px 12px;
    background: var(--green-light);
    border-radius: 12px;
}

/* Stats Card - VECHEA VERSIUNE (păstrată pentru compatibilitate) */
    background: linear-gradient(135deg, #00563B 0%, #003d29 100%);
    color: white;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stats-number {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stats-label {
    font-size: 16px;
    opacity: 0.9;
}

/* ============================================
   TABLE VIEW (NOU - Desktop > 1200px)
   ============================================ */

.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table thead {
    background: var(--green-rolex);
    color: white;
}

.admin-table th {
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 2px solid var(--green-hover);
    white-space: nowrap;
}

.admin-table tbody tr {
    border-bottom: 1px solid var(--gray-light);
    transition: 0.2s;
}

.admin-table tbody tr:hover {
    background: var(--gray-lightest);
}

.admin-table td {
    padding: 16px 12px;
    vertical-align: top;
}

/* Fotografii thumbnails */
.photo-thumbnails {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.photo-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.photo-thumb:hover {
    border-color: var(--green-rolex);
    transform: scale(1.05);
}

/* Nume complet cell */
.child-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.parent-name {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.contact-info {
    font-size: 13px;
    color: var(--green-rolex);
    margin-bottom: 2px;
}

.contact-info a {
    color: var(--green-rolex);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Vârstă cell */
.age-primary {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.age-year {
    font-size: 13px;
    color: #666;
}

/* Fizic cell */
.physical-info {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 2px;
}

/* Acțiuni buttons în table */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-action {
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.btn-action.btn-view {
    background: var(--green-rolex);
    color: white;
}

.btn-action.btn-view:hover {
    background: var(--green-hover);
}

.btn-action.btn-export {
    background: var(--green-light);
    color: var(--green-rolex);
}

.btn-action.btn-export:hover {
    background: var(--green-rolex);
    color: white;
}

.btn-action.btn-delete {
    background: #FFEBEE;
    color: #F44336;
}

.btn-action.btn-delete:hover {
    background: #F44336;
    color: white;
}

/* ============================================
   CARD VIEW (Original - păstrat pentru mobile)
   ============================================ */

.copii-grid {
    display: none; /* Ascuns pe desktop, vizibil pe mobile */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.copil-card {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
}

.copil-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.copil-foto {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--gray-lightest);
}

.copil-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 24px;
    height: 24px;
    cursor: pointer;
    z-index: 10;
}

.copil-info {
    padding: 16px;
}

.copil-nume {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.copil-detalii {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
}

.copil-parinte {
    font-size: 13px;
    color: #999;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--gray-light);
}

.copil-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-small {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-view {
    background: var(--green-rolex);
    color: white;
    flex: 1;
}

.btn-view:hover {
    background: var(--green-hover);
}

.btn-export {
    background: #00563B;
    color: white;
}

.btn-export:hover {
    background: #003d29;
}

.btn-delete {
    background: #F44336;
    color: white;
}

.btn-delete:hover {
    background: #d32f2f;
}

.no-results {
    text-align: center;
    padding: 48px 24px;
    color: #999;
    background: white;
    border-radius: 8px;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

/* ============================================
   BULK ACTIONS
   ============================================ */

.bulk-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid var(--green-rolex);
    padding: 16px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    display: none;
    align-items: center;
    gap: 16px;
    z-index: 1001;
    transition: 0.3s;
}

.bulk-actions.show {
    display: flex;
}

body.sidebar-open .bulk-actions {
    left: var(--sidebar-width);
}

body.sidebar-closed .bulk-actions {
    left: 0;
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination-wrapper {
    margin-top: 32px;
    padding: 24px;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--gray-light);
}

.pagination-info {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.pagination-controls {
    text-align: center;
    margin-bottom: 16px;
}

.pagination-controls label {
    font-size: 14px;
    color: #666;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--gray-light);
    border-radius: 6px;
    background: white;
    color: #333;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 14px;
    font-weight: 500;
}

.pagination-btn:hover {
    background: var(--green-light);
    border-color: var(--green-rolex);
    color: var(--green-rolex);
}

.pagination-btn.active {
    background: var(--green-rolex);
    color: white;
    border-color: var(--green-rolex);
    font-weight: 600;
}

.pagination-dots {
    padding: 0 8px;
    color: #999;
}

/* ============================================
   PROFILE PAGE
   ============================================ */

.profile-page {
    background: var(--gray-lightest);
}

.breadcrumb {
    background: white;
    padding: 12px 0;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--gray-light);
}

.breadcrumb-link {
    color: var(--green-rolex);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.breadcrumb-link:hover {
    text-decoration: underline;
}

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px;
}

.profile-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.profile-photo-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--gray-light);
    transition: 0.3s;
}

.profile-photo-item:hover {
    border-color: var(--green-rolex);
    transform: scale(1.02);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 86, 59, 0.9);
    color: white;
    padding: 8px;
    text-align: center;
    font-size: 12px;
    opacity: 0;
    transition: 0.3s;
}

.profile-photo-item:hover .photo-overlay {
    opacity: 1;
}

.profile-info-card {
    background: white;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.profile-header {
    border-bottom: 2px solid var(--green-rolex);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--green-rolex);
    margin-bottom: 12px;
}

.profile-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #666;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.profile-physical {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
}

.physical-item {
    padding: 6px 12px;
    background: var(--green-light);
    border-radius: 20px;
    color: var(--green-rolex);
    font-weight: 500;
}

.profile-section {
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-light);
}

.profile-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
}

.aptitudine-group {
    margin-bottom: 20px;
}

.aptitudine-group:last-child {
    margin-bottom: 0;
}

.aptitudine-group h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--green-rolex);
    margin-bottom: 8px;
}

.aptitudine-group p {
    color: #666;
    line-height: 1.6;
}

.contact-info {
    line-height: 1.8;
}

.contact-name {
    font-weight: 600;
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.contact-detail {
    color: #666;
    margin-bottom: 4px;
}

.contact-detail a {
    color: var(--green-rolex);
    text-decoration: none;
    transition: 0.3s;
}

.contact-detail a:hover {
    text-decoration: underline;
}

.profile-metadata {
    background: var(--gray-lightest);
    padding: 16px;
    border-radius: 8px;
    border: none;
}

.metadata-item {
    margin-bottom: 4px;
    font-size: 14px;
    color: #666;
}

.metadata-item:last-child {
    margin-bottom: 0;
}

.profile-actions {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-light);
    flex-wrap: wrap;
}

.profile-actions .btn {
    flex: 1;
    min-width: 200px;
}

/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 48px;
    color: white;
    cursor: pointer;
    font-weight: 300;
    transition: 0.3s;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--green-rolex);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 32px;
    padding: 16px 24px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 4px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 86, 59, 0.8);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border: 1px solid #66BB6A;
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border: 1px solid #EF5350;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main {
    padding: var(--spacing-xl) 0;
    min-height: calc(100vh - 300px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.hero-title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--green-rolex);
    margin-bottom: var(--spacing-sm);
}

.hero-text {
    font-size: var(--text-base);
    color: var(--gray-dark);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   PROGRESS STEPS
   ============================================ */

.progress-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-md);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 200px;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60%;
    width: 100%;
    height: 2px;
    background-color: var(--gray-light);
    z-index: -1;
}

.step.active:not(:last-child)::after {
    background-color: var(--green-rolex);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-light);
    color: var(--gray-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    transition: var(--transition);
}

.step.active .step-number {
    background-color: var(--green-rolex);
    color: var(--white);
}

.step-label {
    font-size: var(--text-xs);
    color: var(--gray-dark);
    text-align: center;
}

.step.active .step-label {
    color: var(--green-rolex);
    font-weight: 600;
}

/* ============================================
   FORM STYLES
   ============================================ */

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-card {
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--green-rolex);
    margin-bottom: var(--spacing-xs);
}

.form-subtitle {
    font-size: var(--text-sm);
    color: var(--gray-dark);
    margin-bottom: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: var(--text-sm);
    font-family: var(--font-family);
    color: var(--text);
    background-color: var(--white);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--green-rolex);
    box-shadow: 0 0 0 3px rgba(0, 86, 59, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--gray);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-help {
    display: block;
    font-size: var(--text-xs);
    color: var(--gray-dark);
    margin-top: var(--spacing-xs);
}

.form-error {
    display: none;
    font-size: var(--text-xs);
    color: var(--error);
    margin-top: var(--spacing-xs);
}

.form-error.show {
    display: block;
}

/* ============================================
   CHECKBOX & RADIO
   ============================================ */

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    cursor: pointer;
}

.form-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: var(--text-sm);
    color: var(--text);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: 12px 24px;
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-family);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.5;
}

.btn-primary {
    background-color: var(--green-rolex);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--green-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 86, 59, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--green-light);
    color: var(--green-rolex);
}

.btn-secondary:hover {
    background-color: var(--green-rolex);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    color: var(--green-rolex);
    border: 2px solid var(--green-rolex);
}

.btn-outline:hover {
    background-color: var(--green-rolex);
    color: var(--white);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   FORM ACTIONS
   ============================================ */

.form-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--gray-light);
}

/* ============================================
   CHILD FORM
   ============================================ */

.child-form {
    background-color: var(--gray-lightest);
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.child-form:first-child {
    background-color: transparent;
    border: none;
    padding: 0;
}

.child-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
}

.child-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--green-rolex);
}

/* ============================================
   UPLOAD ZONE
   ============================================ */

.upload-zone {
    position: relative;
    border: 2px dashed var(--gray-light);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg);
    text-align: center;
    background-color: var(--gray-lightest);
    cursor: pointer;
    transition: var(--transition);
}

.upload-zone:hover {
    border-color: var(--green-rolex);
    background-color: var(--green-light);
}

.upload-zone.dragover {
    border-color: var(--green-rolex);
    background-color: var(--green-light);
}

.upload-icon {
    margin-bottom: var(--spacing-sm);
}

.upload-text {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
    margin-bottom: var(--spacing-xs);
}

.upload-help {
    font-size: var(--text-xs);
    color: var(--gray-dark);
}

.upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.preview-item {
    position: relative;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 1;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: var(--spacing-xs);
    right: var(--spacing-xs);
    width: 24px;
    height: 24px;
    background-color: var(--error);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    transition: var(--transition);
}

.preview-remove:hover {
    background-color: #d32f2f;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background-color: var(--gray-lightest);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xl);
}

.footer-text {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--gray-dark);
    margin-bottom: var(--spacing-sm);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.footer-link {
    font-size: var(--text-xs);
    color: var(--green-rolex);
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    text-decoration: underline;
}

/* ============================================
   LINKS
   ============================================ */

.link {
    color: var(--green-rolex);
    text-decoration: underline;
    transition: var(--transition);
}

.link:hover {
    color: var(--green-hover);
}

/* ============================================
   RESPONSIVE - TABLET & MOBILE
   ============================================ */

/* Responsive pentru TABLE VIEW - sub 1200px ascunde table, arată carduri */
@media (max-width: 1200px) {
    .table-responsive {
        display: none;
    }
    
    .copii-grid {
        display: grid !important;
    }
}

@media (max-width: 767px) {
    .admin-sidebar {
        transform: translateX(calc(-1 * var(--sidebar-width)));
    }
    
    body.sidebar-open .admin-sidebar {
        transform: translateX(0);
    }
    
    .admin-main {
        margin-left: 0;
        padding: 16px;
    }
    
    .stats-card-minimal {
        flex-wrap: wrap;
        padding: 10px 16px;
    }
    
    .stats-text {
        font-size: 14px;
    }
    
    .stats-text strong {
        font-size: 18px;
    }
    
    .stats-range {
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .copii-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-photos {
        grid-template-columns: 1fr;
    }
    
    .profile-actions {
        flex-direction: column;
    }
    
    .profile-actions .btn {
        width: 100%;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .bulk-actions {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .progress-steps {
        gap: var(--spacing-lg);
    }
    
    .upload-preview {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .copii-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-photos {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   RESPONSIVE - DESKTOP
   ============================================ */

@media (min-width: 1024px) {
    .hero-title {
        font-size: 36px;
    }
    
    .form-card {
        padding: var(--spacing-xl);
    }
    
    .container {
        padding: 0 var(--spacing-lg);
    }
    
    .copii-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1201px) {
    /* Pe desktop > 1200px: arată TABLE, ascunde CARDURI */
    .table-responsive {
        display: block !important;
    }
    
    .copii-grid {
        display: none !important;
    }
}

@media (min-width: 1400px) {
    .copii-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ============================================
   UTILITIES
   ============================================ */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-error {
    color: var(--error);
}

.text-success {
    color: var(--success);
}

/* ============================================
   LOADING STATE
   ============================================ */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-card {
    animation: fadeIn 0.4s ease;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .header,
    .footer,
    .btn,
    .upload-zone,
    .admin-header,
    .admin-sidebar,
    .breadcrumb,
    .profile-actions,
    .lightbox {
        display: none;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .profile-container {
        max-width: 100%;
    }
}