/* =================================
   ADMIN PANEL STYLES - MODERN
   ================================= */

/* Stiluri specifice pentru paginile admin care se integrează cu style.css */



/* =================================
   MODULE MANAGEMENT STYLES
   ================================= */

.modules-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.modules-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.client-module-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.client-module-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.client-module-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.client-module-header h3 {
    color: #1e293b;
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.client-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.client-username {
    font-family: 'Courier New', monospace;
    background: #e2e8f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    color: #475569;
    font-weight: 500;
}

.client-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.client-status.active {
    background: #d1fae5;
    color: #059669;
}

.client-status.inactive {
    background: #fecaca;
    color: #dc2626;
}

.modules-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    transition: all 0.2s ease;
}

.module-row.module-active {
    border-color: #059669;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.module-row.module-inactive {
    border-color: #d1d5db;
    background: #fafafa;
}

.module-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.module-name {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.module-icon {
    font-size: 1.5rem;
}

.module-status {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.status-badge.status-active {
    background: #d1fae5;
    color: #059669;
}

.status-badge.status-inactive {
    background: #fef3c7;
    color: #d97706;
}

.activation-date {
    color: #64748b;
    font-size: 0.75rem;
    font-style: italic;
}

.module-actions {
    margin-left: 1rem;
}

.btn-module {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-activate {
    background: #059669;
    color: white;
}

.btn-activate:hover {
    background: #047857;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(5, 150, 105, 0.3);
}

.btn-deactivate {
    background: #dc2626;
    color: white;
}

.btn-deactivate:hover {
    background: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 38, 38, 0.3);
}

/* =================================
   MODULE STYLES FOR EDIT/VIEW PAGES
   ================================= */

/* Module Grid in Edit Client */
.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.module-card {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.module-card.module-active {
    border-color: #059669;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
}

.module-card.module-inactive {
    border-color: #d1d5db;
    background: #fafafa;
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.module-checkbox {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.module-checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 1rem;
}

.module-description {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.module-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: #475569;
}

.module-features li {
    padding: 0.25rem 0;
}

.module-activation-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 0.75rem;
}

/* Module View Grid in View Client */
.modules-view-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.module-view-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
}

.module-view-card.module-active {
    border-color: #059669;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.module-view-card.module-inactive {
    border-color: #d1d5db;
    opacity: 0.7;
}

.module-view-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.module-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.module-title strong {
    color: #1e293b;
    font-size: 1rem;
}

.module-view-card .module-description {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.module-view-card .module-activation-info {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    color: #64748b;
    font-size: 0.75rem;
}

/* Responsive pentru tablete (1024px și mai jos) */
@media (max-width: 1024px) {
    .modules-admin-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modules-grid,
    .modules-view-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1rem;
    }
}

/* Subscription info în tabel */
.subscription-info {
    font-size: 0.9rem;
}

.subscription-info strong {
    color: #1e293b;
    font-weight: 600;
}

.subscription-info small {
    color: #64748b;
    font-size: 0.8rem;
}

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

/* Responsive pentru mobile (768px și mai jos) */
/* Profile Page Styles */
.profile-container {
    max-width: 1000px;
    margin: 0 auto;
}

.profile-form {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.form-section {
    border-bottom: 1px solid var(--border-color);
}

.form-section:last-child {
    border-bottom: none;
}

.section-header {
    background: #f8fafc;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
}

.section-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header i {
    color: var(--primary-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.form-group small {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: 4px;
}

.form-actions {
    padding: 30px;
    background: #f8fafc;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.form-actions .btn {
    padding: 12px 24px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.form-actions .btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.form-actions .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.form-actions .btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.form-actions .btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .modules-admin-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .section-header {
        padding: 15px 20px;
    }
    
    .form-actions {
        padding: 20px;
        flex-direction: column;
    }
    
    .form-actions .btn {
        justify-content: center;
    }
}
    
    .client-module-card {
        padding: 1rem;
    }
    
    .client-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .module-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .module-actions {
        margin-left: 0;
        align-self: stretch;
    }
    
    .btn-module {
        width: 100%;
        justify-content: center;
    }
    
    .modules-grid,
    .modules-view-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .module-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .module-checkbox {
        width: 100%;
    }
    
    /* Stats grid pe mobile */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1.25rem;
        text-align: center;
    }
    
    /* Acțiuni pe mobile */
    .action-buttons {
        gap: 8px;
        justify-content: center;
    }
    
    .btn-action span {
        display: none;
    }
    
    .btn-action {
        padding: 14px 16px;
        min-width: auto;
        border-radius: 10px;
    }
    
    .btn-action i {
        font-size: 1.1rem;
        margin: 0;
    }
}

/* Responsive pentru telefoane foarte mici (480px și mai jos) */
@media (max-width: 480px) {
    .view-header,
    .edit-header {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .view-header h1,
    .edit-header h1 {
        font-size: 1.8rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .table-container {
        font-size: 0.85rem;
    }
    
    .clients-table th,
    .clients-table td {
        padding: 10px 8px;
    }
}

/* =================================
   SETĂRI RAPOARTE - BUTOANE COMPACTE
   ================================= */

/* Stiluri specifice pentru pagina Setări Rapoarte */
.settings-page .action-buttons {
    gap: 4px;
    justify-content: center;
    min-width: 120px; /* Lățime fixă pentru coloana de acțiuni */
}

.settings-page .btn-action {
    padding: 8px 10px;
    min-width: 36px;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* Lățime fixă pentru coloana de acțiuni în tabel */
.settings-page .data-table th:last-child,
.settings-page .data-table td:last-child {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    text-align: center;
}

.settings-page .btn-action i {
    font-size: 0.9rem;
    margin: 0;
}

.settings-page .btn-action span {
    display: none; /* Ascunde textul pentru a economisi spațiu */
}

/* Stiluri pentru diferitele tipuri de butoane în Setări Rapoarte */
.settings-page .btn-edit {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.settings-page .btn-edit:hover {
    background: rgba(245, 158, 11, 0.2);
    transform: scale(1.05);
}

.settings-page .btn-star {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

.settings-page .btn-star:hover {
    background: rgba(251, 191, 36, 0.2);
    transform: scale(1.05);
}

.settings-page .btn-delete {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.settings-page .btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.05);
}

/* Responsive pentru Setări Rapoarte */
@media (max-width: 768px) {
    .settings-page .action-buttons {
        gap: 2px;
        flex-direction: row;
        justify-content: center;
        min-width: 100px;
    }
    
    .settings-page .btn-action {
        padding: 6px 8px;
        min-width: 32px;
        font-size: 0.8rem;
    }
    
    .settings-page .btn-action i {
        font-size: 0.85rem;
    }
    
    /* Coloana de acțiuni pe mobile */
    .settings-page .data-table th:last-child,
    .settings-page .data-table td:last-child {
        width: 100px;
        min-width: 100px;
        max-width: 100px;
    }
}

@media (max-width: 480px) {
    .settings-page .action-buttons {
        gap: 1px;
        min-width: 85px;
    }
    
    .settings-page .btn-action {
        padding: 5px 6px;
        min-width: 28px;
        font-size: 0.75rem;
    }
    
    .settings-page .btn-action i {
        font-size: 0.8rem;
    }
    
    /* Coloana de acțiuni pe telefoane mici */
    .settings-page .data-table th:last-child,
    .settings-page .data-table td:last-child {
        width: 85px;
        min-width: 85px;
        max-width: 85px;
    }
}

/* =================================
   HEADER STYLES - MODERN
   ================================= */

.view-header {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.edit-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}



.view-header h1,
.edit-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.view-header p,
.edit-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* =================================
   ALERT STYLES - MODERN
   ================================= */

.alert {
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: none;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.alert-success {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #7f1d1d;
    border-left: 4px solid #ef4444;
}

.alert-warning {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #78350f;
    border-left: 4px solid #f59e0b;
}

.alert-info {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e3a8a;
    border-left: 4px solid #3b82f6;
}

/* =================================
   STATISTICS CARDS - MODERN
   ================================= */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stat-header {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #b91c1c;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =================================
   CLIENTS TABLE - MODERN
   ================================= */

.clients-section {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.section-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

.btn-add {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3);
}

.table-container {
    overflow-x: auto;
    padding: 0;
}

.clients-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.clients-table th {
    background: #f8fafc;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clients-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: middle;
}

.clients-table tbody tr {
    transition: background-color 0.2s ease;
}





/* =================================
   BUTTONS - MODERN
   ================================= */

/* Action buttons container */
.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
}

/* Inline forms pentru butoane */
.inline-form {
    display: inline-block;
    margin: 0;
}

/* Action buttons - stil minimal și elegant, dimensiuni mari */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    min-width: fit-content;
    background: transparent;
    position: relative;
}

.btn-action i {
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.btn-action span {
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-action:hover i {
    /* Nu mai aplicăm transform */
}

/* Stil pentru View - Albastru subtil */
.btn-view {
    color: #64748b;
    background: transparent;
}

.btn-view:hover {
    background: #b91c1c;
    color: white;
}

/* Stil pentru Edit - Portocaliu subtil */
.btn-edit {
    color: #64748b;
    background: transparent;
}

.btn-edit:hover {
    background: #b91c1c;
    color: white;
}

/* Stil pentru Toggle - Success - Verde subtil */
.btn-success {
    color: #64748b;
    background: transparent;
}

.btn-success:hover {
    background: #b91c1c;
    color: white;
}

/* Stil pentru Toggle - Warning - Galben subtil */
.btn-warning {
    color: #64748b;
    background: transparent;
}

.btn-warning:hover {
    background: #b91c1c;
    color: white;
}

/* Stil pentru Delete - Roșu subtil */
.btn-delete {
    color: #64748b;
    background: transparent;
}

.btn-delete:hover {
    background: #b91c1c;
    color: white;
}

/* Stil pentru Contract - Verde închis */
.btn-contract {
    color: #059669;
    background: transparent;
}

.btn-contract:hover {
    color: white;
    background: #059669;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

/* Butoane mici pentru compatibilitate (legacy) */
.btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.btn-small.btn-view {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
}

.btn-small.btn-view:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(6, 182, 212, 0.3);
}

.btn-small.btn-edit {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.btn-small.btn-edit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(245, 158, 11, 0.3);
}

.btn-small.btn-toggle {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-small.btn-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.btn-small.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-small.btn-delete:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
}

/* =================================
   STATUS INDICATORS - MODERN
   ================================= */

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #7f1d1d;
}

.status-activ {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-inactiv {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.status-expirat {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.status-anulat {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.status-configured {
    background: #dbeafe;
    color: #1e3a8a;
}

.status-not-configured {
    background: #f3f4f6;
    color: #374151;
}

/* =================================
   FORM STYLES - MODERN
   ================================= */

/* =================================
   CONTAINER PENTRU EDIT CLIENT - LĂȚIME CA LA PROIECTE
   ================================= */

/* Forțează lățimea containerului să fie ca la pagina Proiecte - DOAR pentru alte pagini, nu pentru Setari Rapoarte */
body.settings-page:not(.setari-rapoarte-page) .main-content .settings-content {
    width: 95vw !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    padding: 0 1rem !important;
}

@media (max-width: 1024px) {
    body.settings-page:not(.setari-rapoarte-page) .main-content .settings-content {
        width: 98vw !important;
        padding: 0 0.5rem !important;
    }
}

.form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.edit-sections {
    padding: 30px;
}

.section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.info-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 4px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    background: #f8fafc;
    padding: 25px 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(107, 114, 128, 0.3);
}

.btn-back {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-back:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(6, 182, 212, 0.3);
}

/* =================================
   CLIENT DETAILS - MODERN
   ================================= */

.client-details {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
}

.detail-section {
    padding: 25px 30px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 0.95rem;
    color: #1e293b;
    font-weight: 500;
}





/* Modern form styling */
.modern-form {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.modern-form .section {
    padding: 30px;
}

.modern-form .section h3 {
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f3f4f6;
}

/* Modern actions */
.modern-actions {
    display: flex;
    gap: 15px;
        justify-content: center;
    padding: 25px 30px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.modern-btn {
    display: inline-flex;
        align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
        justify-content: center;
}

.btn-primary.modern-btn {
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    color: white;
}

.btn-primary.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(185, 28, 28, 0.3);
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 100%);
}

.btn-secondary.modern-btn {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
}

.btn-secondary.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(107, 114, 128, 0.3);
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================================
   LOGIN PAGE - MODERN DESIGN
   ================================= */

/* Professional White Background with Red Accents */
.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: 
        radial-gradient(circle at 15% 15%, rgba(185, 28, 28, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(220, 38, 38, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(185, 28, 28, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(239, 68, 68, 0.05) 0%, transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #fdfdfd 100%);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(185, 28, 28, 0.02) 50%, transparent 100%),
        linear-gradient(-45deg, transparent 0%, rgba(220, 38, 38, 0.03) 50%, transparent 100%);
    pointer-events: none;
}

.login-background {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 480px;
    position: relative;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 50px 45px;
    box-shadow: 
        0 20px 40px rgba(185, 28, 28, 0.12),
        0 10px 25px rgba(185, 28, 28, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(185, 28, 28, 0.1);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #b91c1c 0%, #dc2626 30%, #ef4444 60%, #dc2626 80%, #b91c1c 100%);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.3);
}

.login-card.animate-in {
    transform: translateY(0);
    opacity: 1;
}

/* Professional Login Header */
.login-header {
    text-align: center;
    margin-bottom: 45px;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(185, 28, 28, 0.08) 0%, rgba(220, 38, 38, 0.04) 50%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.logo-container i {
    font-size: 2.5rem;
    color: #b91c1c;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(185, 28, 28, 0.2));
    position: relative;
}

.login-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.login-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 8px 0 0 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(10px);
}

.security-badge i {
    font-size: 0.8rem;
    color: #059669;
}

.login-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #b91c1c 50%, transparent 100%);
    border-radius: 1px;
}

/* Premium Form Styling */
.login-form {
    margin-bottom: 35px;
}

.login-form .form-group {
    margin-bottom: 28px;
    position: relative;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container input {
    width: 100%;
    padding: 18px 24px 18px 54px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    color: #1f2937;
    letter-spacing: 0.01em;
}

.input-container input:focus {
    outline: none;
    border-color: #b91c1c;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 4px rgba(185, 28, 28, 0.1),
        0 8px 25px rgba(185, 28, 28, 0.15),
        inset 0 1px 2px rgba(0, 0, 0, 0.02);
    transform: translateY(-2px);
}

.input-container input::placeholder {
    color: transparent;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.input-container.focused .input-icon,
.input-container.has-value .input-icon {
    color: #b91c1c;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-50%) scale(1.1);
}

.input-container label {
    position: absolute;
    left: 54px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.05rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.9);
    padding: 0 8px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.input-container.focused label,
.input-container.has-value label {
    top: 0;
    left: 48px;
    font-size: 0.85rem;
    color: #b91c1c;
    font-weight: 600;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.1);
}

/* Premium Login Button */
.btn-login {
    width: 100%;
    padding: 20px 32px;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    box-shadow: 
        0 8px 25px rgba(185, 28, 28, 0.3),
        0 4px 12px rgba(185, 28, 28, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(185, 28, 28, 0.4),
        0 8px 20px rgba(185, 28, 28, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-login:active {
    transform: translateY(-1px);
    box-shadow: 
        0 8px 20px rgba(185, 28, 28, 0.3),
        0 4px 10px rgba(185, 28, 28, 0.2);
}

.btn-login i {
    font-size: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.btn-login span {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Professional Action Buttons */
.login-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
    padding-top: 10px;
}

.btn-back,
.btn-register {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(185, 28, 28, 0.15);
    border-radius: 12px;
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.08);
    min-height: 48px;
    height: 48px;
    box-sizing: border-box;
}

.btn-back::before,
.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.btn-back:hover::before,
.btn-register:hover::before {
    transform: translateY(0);
}

.btn-back:hover {
    border-color: rgba(100, 116, 139, 0.4);
    background: rgba(248, 250, 252, 1);
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.2);
}

.btn-register:hover {
    border-color: rgba(185, 28, 28, 0.4);
    background: rgba(254, 242, 242, 1);
    color: #b91c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(185, 28, 28, 0.2);
}

.btn-back i,
.btn-register i {
    position: relative;
    z-index: 2;
    font-size: 1rem;
}

.btn-back span,
.btn-register span {
    position: relative;
    z-index: 2;
}

/* Professional Footer */
.login-footer {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(185, 28, 28, 0.15);
    position: relative;
}

.login-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(185, 28, 28, 0.3) 50%, transparent 100%);
}

.login-footer p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

/* Premium Alert Styling */
.login-card .alert {
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 25px;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.login-card .alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.login-card .alert-error {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.9) 0%, rgba(252, 165, 165, 0.8) 100%);
    color: #7f1d1d;
    border-left: 4px solid #ef4444;
    box-shadow: 
        0 4px 15px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-card .alert-error i {
    color: #ef4444;
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(127, 29, 29, 0.3));
}

/* Professional Responsive Design */
@media (max-width: 640px) {
    .login-background {
        padding: 20px 15px;
    }
    
    .login-card {
        padding: 35px 25px;
        border-radius: 20px;
        max-width: 100%;
    }
    
    .login-header h1 {
        font-size: 1.8rem;
    }
    
    .logo-container i {
        font-size: 2.2rem;
    }
    
    .input-container input {
        padding: 16px 20px 16px 48px;
        font-size: 1rem;
    }
    
    .input-container label {
        left: 48px;
        font-size: 1rem;
    }
    
    .input-container.focused label,
    .input-container.has-value label {
        left: 42px;
        font-size: 0.8rem;
    }
    
.btn-login {
        padding: 18px 28px;
        font-size: 1.05rem;
    }
    
    .login-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-back,
    .btn-register {
        flex: none;
        padding: 12px 18px;
    }
}

@media (max-width: 380px) {
    .login-card {
        padding: 30px 20px;
        border-radius: 18px;
    }
    
    .login-header h1 {
        font-size: 1.6rem;
    }
    
    .logo-container i {
        font-size: 2rem;
    }
    
    .input-container input {
        padding: 14px 18px 14px 44px;
        border-radius: 14px;
    }
    
    .btn-login {
        padding: 16px 24px;
        border-radius: 14px;
    }
}

/* =================================
   REGISTER PAGE - MATCHING LOGIN DESIGN
   ================================= */

/* Register page inherits login styles */
.register-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: 
        radial-gradient(circle at 15% 15%, rgba(185, 28, 28, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(220, 38, 38, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(185, 28, 28, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(239, 68, 68, 0.05) 0%, transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #fefefe 50%, #fdfdfd 100%);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow: hidden;
}

.register-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 0%, rgba(185, 28, 28, 0.02) 50%, transparent 100%),
        linear-gradient(-45deg, transparent 0%, rgba(220, 38, 38, 0.03) 50%, transparent 100%);
    pointer-events: none;
}

.register-background {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}

.register-container {
    width: 100%;
    max-width: 800px;
    position: relative;
}

.register-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px 35px;
    box-shadow: 
        0 20px 40px rgba(185, 28, 28, 0.12),
        0 10px 25px rgba(185, 28, 28, 0.08),
        0 5px 15px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(185, 28, 28, 0.1);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.register-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #b91c1c 0%, #dc2626 30%, #ef4444 60%, #dc2626 80%, #b91c1c 100%);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.3);
}

.register-card.animate-in {
    transform: translateY(0);
    opacity: 1;
}

/* Register header */
.register-header {
    text-align: center;
    margin-bottom: 35px;
    position: relative;
}

.register-header .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    position: relative;
}

.register-header .logo-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgba(185, 28, 28, 0.08) 0%, rgba(220, 38, 38, 0.04) 50%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.register-header .logo-container i {
    font-size: 2.5rem;
    color: #b91c1c;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(185, 28, 28, 0.2));
    position: relative;
}

.register-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.register-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 8px 0 0 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.register-header .security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.1);
    color: #059669;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(10px);
}

.register-header .security-badge i {
    font-size: 0.8rem;
    color: #059669;
}

.register-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #b91c1c 50%, transparent 100%);
    border-radius: 1px;
}

/* Register form */
.register-form {
    margin-bottom: 25px;
}

.register-form .form-section {
    margin-bottom: 35px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.5);
    border: 1px solid rgba(185, 28, 28, 0.08);
    padding: 25px;
    transition: all 0.3s ease;
}

.register-form .form-section:hover {
    background: rgba(248, 250, 252, 0.8);
    border-color: rgba(185, 28, 28, 0.12);
}

.section-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(185, 28, 28, 0.1);
}

.section-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: #b91c1c;
    font-size: 1.2rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Register form uses same input styles as login */
.register-form .input-container {
    position: relative;
    width: 100%;
}

.register-form .input-container input,
.register-form .input-container textarea {
    width: 100%;
    padding: 18px 24px 18px 54px;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    font-size: 1.05rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-sizing: border-box;
    color: #1f2937;
    letter-spacing: 0.01em;
    resize: vertical;
}

.register-form .input-container textarea {
    min-height: 120px;
    padding-top: 18px;
}

.register-form .input-container input:focus,
.register-form .input-container textarea:focus {
    outline: none;
    border-color: #b91c1c;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 4px rgba(185, 28, 28, 0.1),
        0 8px 25px rgba(185, 28, 28, 0.15),
        inset 0 1px 2px rgba(0, 0, 0, 0.02);
    transform: translateY(-2px);
}

.register-form .input-container input::placeholder,
.register-form .input-container textarea::placeholder {
    color: transparent;
}

.register-form .input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2;
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.register-form .input-container.focused .input-icon,
.register-form .input-container.has-value .input-icon {
    color: #b91c1c;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(-50%) scale(1.1);
}

.register-form .input-container label {
    position: absolute;
    left: 54px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.05rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.9);
    padding: 0 8px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.register-form .input-container.focused label,
.register-form .input-container.has-value label {
    top: 0;
    left: 48px;
    font-size: 0.85rem;
    color: #b91c1c;
    font-weight: 600;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.1);
}

/* For textarea labels */
.register-form .input-container textarea + label {
    top: 20px;
}

.register-form .input-container.focused textarea + label,
.register-form .input-container.has-value textarea + label {
    top: 0;
}

.info-text {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 5px;
    font-style: italic;
}

/* Register form actions */
.register-form .form-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}

.register-btn {
    flex: 1;
    max-width: 250px;
    padding: 20px 32px;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #ef4444 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    box-shadow: 
        0 8px 25px rgba(185, 28, 28, 0.3),
        0 4px 12px rgba(185, 28, 28, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.register-btn:hover::before {
    left: 100%;
}

.register-btn:hover {
    background: linear-gradient(135deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(185, 28, 28, 0.4),
        0 8px 20px rgba(185, 28, 28, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.register-btn:active {
    transform: translateY(-1px);
}

.register-form .btn-back {
    flex: 1;
    max-width: 180px;
    padding: 20px 24px;
    border: 2px solid rgba(185, 28, 28, 0.15);
    border-radius: 16px;
    color: #64748b;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(185, 28, 28, 0.08);
    letter-spacing: 0.01em;
}

.register-form .btn-back:hover {
    border-color: rgba(100, 116, 139, 0.4);
    background: rgba(248, 250, 252, 1);
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.2);
}

/* Register footer */
.register-footer {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid rgba(185, 28, 28, 0.15);
    position: relative;
}

.register-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(185, 28, 28, 0.3) 50%, transparent 100%);
}

.register-footer p {
    color: #94a3b8;
    font-size: 0.85rem;
    margin: 8px 0;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.login-link {
    color: #b91c1c;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.login-link:hover {
    color: #991b1b;
    transform: translateY(-1px);
}

/* Register alerts */
.register-card .alert {
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 25px;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.register-card .alert::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.register-card .alert-error {
    background: linear-gradient(135deg, rgba(254, 226, 226, 0.9) 0%, rgba(252, 165, 165, 0.8) 100%);
    color: #7f1d1d;
    border-left: 4px solid #ef4444;
    box-shadow: 
        0 4px 15px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.register-card .alert-error i {
    color: #ef4444;
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(127, 29, 29, 0.3));
}

.register-card .alert-success {
    background: linear-gradient(135deg, rgba(220, 252, 231, 0.9) 0%, rgba(167, 243, 208, 0.8) 100%);
    color: #064e3b;
    border-left: 4px solid #10b981;
    box-shadow: 
        0 4px 15px rgba(16, 185, 129, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.register-card .alert-success i {
    color: #10b981;
    font-size: 1.1rem;
    filter: drop-shadow(0 1px 2px rgba(6, 78, 59, 0.3));
}

/* Responsive design for register */
@media (max-width: 768px) {
    .register-container {
        max-width: 100%;
    }
    
    .register-card {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .register-form .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .register-btn,
    .register-form .btn-back {
        max-width: none;
    }
    
    .register-header h1 {
        font-size: 1.8rem;
    }
    
    .register-header .logo-container i {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .register-background {
        padding: 20px 15px;
    }
    
    .register-card {
        padding: 25px 15px;
        border-radius: 18px;
    }
    
    .register-form .form-section {
        padding: 20px 15px;
    }
    
    .register-form .input-container input,
    .register-form .input-container textarea {
        padding: 16px 20px 16px 48px;
        font-size: 1rem;
        border-radius: 14px;
    }
    
    .register-btn {
        padding: 18px 28px;
        font-size: 1.05rem;
        border-radius: 14px;
    }
    
    .register-form .btn-back {
        padding: 18px 20px;
        border-radius: 14px;
    }
}



/* =================================
   RESPONSIVE DESIGN
   ================================= */

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
    text-align: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .table-container {
        font-size: 0.85rem;
    }
    
    .clients-table th,
    .clients-table td {
        padding: 10px 8px;
    }
    
    /* Action buttons responsive */
    .action-buttons {
           gap: 8px;
        justify-content: center;
    }
    
    .btn-action {
        padding: 14px 16px;
        min-width: auto;
           border-radius: 10px;
    }
    
    .btn-action span {
        display: none; /* Ascunde textul pe mobile, păstrează doar iconițele */
    }
    
    .btn-action i {
        font-size: 1.1rem;
    margin: 0;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 1rem;
    }
    
    .view-header,
    .edit-header {
        padding: 25px 20px;
        margin-bottom: 20px;
    }
    
    .view-header h1,
    .edit-header h1 {
        font-size: 1.8rem;
    }
    
    .stat-card {
    padding: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}