/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
    color: #333;
}

/* Login Page Styles */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 400px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #333;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-login:hover {
    transform: translateY(-2px);
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    border: 1px solid #f5c6cb;
}

/* Navigation Styles */
.main-nav {    
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.main-nav.dev-mode {
    background: linear-gradient(135deg, #ff0000 0%, #ff8000 100%);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-left h1 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.nav-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.2);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.3);
}

.user-info {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
}

/* Container Styles */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Wide container for evaluari list */
.container.evaluari-container {
    max-width: 95%;
    margin: 0.625rem auto; /* Reduced from 2rem (32px) to 0.625rem (10px) */
    padding: 0 0.625rem; /* Reduced padding to 10px for more width */
}

/* Search Container Styles */
.search-container {
    margin-bottom: 2rem;
}

/* Search Type Selector */
.search-type-selector {
    display: flex;
    border: 2px solid #e1e5e9;
    border-right: none;
    border-radius: 25px 0 0 25px;
    margin-right: 0;
}

.search-type-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 12px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    font-size: 14px;
    border-radius: 0;
}

.search-type-btn:first-child {
    border-radius: 4px 0 0 4px;
    border-right: none;
    margin-left: 10px;
}

.search-type-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.search-type-btn:hover {
    background-color: #f5f5f5;
    color: #333;
    border-color: #bbb;
}

.search-type-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.search-type-btn.active:hover {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

/* Date Filter Type Buttons */
.date-filter-type {
    display: flex;
    gap: 8px;
}

.date-filter-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 12px;
    cursor: pointer;
    color: #666;
    transition: all 0.2s ease;
    font-size: 14px;
    border-radius: 0;
}

.date-filter-btn:first-child {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.date-filter-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.date-filter-btn:hover {
    background-color: #f5f5f5;
    color: #333;
    border-color: #bbb;
}

.date-filter-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

.date-filter-btn.active:hover {
    background-color: #0056b3;
    color: white;
    border-color: #0056b3;
}

.search-box {
    position: relative;
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    font-size: 14px;
    background-color: white;
    transition: all 0.2s ease;
    border-radius: 0;
}

.search-input:focus {
    outline: none;
    background-color: #f5f5f5;
    border-color: #bbb;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-clear {
    background: none;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 4px 4px 0;
    padding: 8px 12px;
    cursor: pointer;
    color: #9ca3af;
    font-size: 14px;
    transition: all 0.2s ease;
    position: static;
}

.search-clear:hover {
    background-color: #f5f5f5;
    color: #333;
    border-color: #bbb;
}

/* Table Styles for Evaluations List */
.evaluari-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);    
    table-layout: fixed; /* Force table to use all available width */
}

.evaluari-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%; /* Ensure table takes full width */
}

.evaluari-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.evaluari-table th:first-child {
    text-align: center;
    width: 50px;
    min-width: 50px;
}

/* Optimized column widths for better space usage */
.evaluari-table th:nth-child(2) { width: 15%; } /* Societate */
.evaluari-table th:nth-child(3) { width: 15%; } /* Nume Prenume */
.evaluari-table th:nth-child(4) { width: 12%; } /* CNP */
.evaluari-table th:nth-child(5) { width: 12%; } /* Ocupația */
.evaluari-table th:nth-child(6) { width: 10%; } /* Concluzie */
.evaluari-table th:nth-child(7) { width: 8%; }  /* Valabilitate */
.evaluari-table th:nth-child(8) { width: 10%; } /* Data eliberării */
.evaluari-table th:nth-child(9) { width: 8%; }  /* Operator */
.evaluari-table th:nth-child(10) { width: 10%; } /* Acțiuni */

.evaluari-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

/* Prevent text wrapping in specific columns */
.evaluari-table td:nth-child(4), /* CNP */
.evaluari-table td:nth-child(7), /* Valabilitate */
.evaluari-table td:nth-child(8), /* Data eliberării */
.evaluari-table td:nth-child(10) /* Acțiuni */ {
    white-space: nowrap;
}

/* Allow text wrapping in content columns */
.evaluari-table td:nth-child(2), /* Societate */
.evaluari-table td:nth-child(3), /* Nume Prenume */
.evaluari-table td:nth-child(5) /* Ocupația */ {
    word-break: break-word;
    max-width: 0; /* This forces the table to respect the width percentages */
}

.evaluari-table tr:hover {
    background-color: #f8f9fa;
}

/* Row number styling */
.row-number {
    text-align: center;
    font-weight: 600;
    color: #667eea;
    width: 50px;
    min-width: 50px;
}

/* Action buttons styling */
.actions-cell {
    text-align: center;
    white-space: nowrap;
}

.btn-edit,
.btn-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    margin: 0 2px;
    transition: all 0.3s ease;
}

.btn-edit {
    background-color: #007bff;
    color: white;
}

.btn-edit:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-edit:focus {
    outline: none;
    box-shadow: none;
}

.btn-toggle {
    background-color: #28a745;
    color: white;
}

.btn-toggle:hover {
    background-color: #218838;
    transform: translateY(-1px);
}

.btn-toggle:focus {
    outline: none;
    box-shadow: none;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-delete:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

/* Company link in table */
.company-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.company-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Expirari Table Styles */
.expirari-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.expirari-table table {
    width: 100%;
    border-collapse: collapse;
}

.expirari-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.expirari-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.expirari-table tr:hover {
    background-color: #f8f9fa;
}

.expirari-table tfoot tr {
    background-color: #f5f5f5;
    font-weight: bold;
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.badge-apt {
    background-color: #d4edda;
    color: #155724;
}

.badge-apt-conditionat {
    background-color: #fff3cd;
    color: #856404;
}

.badge-apt-temporar {
    background-color: #cce7ff;
    color: #004085;
}

.badge-inapt {
    background-color: #f8d7da;
    color: #721c24;
}

/* Status Badge Styles for Login Logs */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-failed {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-blocked {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Form Styles for Fisa Aptitudine */
.fisa-body {
    background: white;
    margin: 2rem auto;
    max-width: 21cm;
    min-height: 14.8cm;
    padding: 1.5cm;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.fisa-header {
    text-align: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #333;
    padding-bottom: 1rem;
}

.fisa-header h1 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.fisa-header h2 {
    font-size: 1.2rem;
    color: #34495e;
    font-weight: normal;
}

.form-section {
    margin-bottom: 1.5rem;
}

.form-section h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.form-col {
    flex: 1;
    min-width: 200px;
}

.form-col.full-width {
    flex: 100%;
}

.form-col.half-width {
    flex: 1;
    max-width: 48%;
}

.form-col label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.form-col input[type="text"],
.form-col input[type="date"],
.form-col input[type="email"],
.form-col input[type="tel"],
.form-col select,
.form-col textarea {
    width: 100%;
    padding: 0.6rem;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    position: relative;
}

.form-col input:focus,
.form-col select:focus,
.form-col textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-col textarea {
    min-height: 80px;
    resize: vertical;
}

/* Autocomplete Styles */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
}

.autocomplete-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background-color: #e3f2fd;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item div {
    margin: 2px 0;
}

/* Ensure autocomplete containers have relative positioning */
.form-col {
    position: relative;
}

/* Button Styles */
.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s;
}

.btn:focus {
    outline: none;
    box-shadow: none;
}

/* Signature Section */
.signature-section {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.signature-box {
    text-align: center;
    min-width: 200px;
}

.signature-line {
    border-top: 1px solid #333;
    margin-bottom: 0.5rem;
    height: 60px;
}

.signature-label {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

/* Print Styles - UPDATED FOR CACHE REFRESH */
@media print {
    body {
        background: white !important;
        color: black !important;
        font-size: 10pt !important;
        line-height: 1.2 !important;
        margin: 0.5cm !important;
        padding: 0 !important;
    }
    
    .main-nav,
    .btn-group,
    .fisa-nav-buttons,
    .container > *:not(.fisa-body) {
        display: none !important;
    }
    
    .fisa-body {
        box-shadow: none !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 0.1cm !important;
        max-width: none !important;
        width: 100% !important;
        height: auto !important;
        page-break-inside: avoid !important;
        background: white !important;
    }
    
    .form-col input,
    .form-col select,
    .form-col textarea {
        border: none !important;
        border-bottom: 1px solid #333 !important;
        background: transparent !important;
        padding: 0 0 1px 0 !important;
        border-radius: 0 !important;
        font-size: 9pt !important;
        line-height: 1.1 !important;
    }
    
    .form-col label {
        font-size: 8pt !important;
        margin-bottom: 0.1rem !important;
        font-weight: bold !important;
    }
    
    .form-section h3 {
        background: none !important;
        color: black !important;
        border-bottom: 1px solid black !important;
        padding: 0.1rem 0 !important;
        margin-bottom: 0.3rem !important;
        font-size: 10pt !important;
        font-weight: bold !important;
    }
    
    .fisa-header {
        margin-bottom: 0.4rem !important;
        padding-bottom: 0.2rem !important;
        border-bottom: 2px solid #000 !important;
    }
    
    .fisa-header h1 {
        font-size: 12pt !important;
        margin-bottom: 0.1rem !important;
        font-weight: bold !important;
    }
    
    .fisa-header h2 {
        font-size: 9pt !important;
        margin-bottom: 0 !important;
    }
    
    .form-section {
        margin-bottom: 0.4rem !important;
    }
    
    .form-row {
        margin-bottom: 0.2rem !important;
    }
    
    .signature-section {
        margin-top: 0.5rem !important;
    }
    
    .signature-line {
        border-top: 1px solid black !important;
        height: 30px !important;
    }
    
    .signature-label {
        font-size: 8pt !important;
    }
    
    .autocomplete-dropdown {
        display: none !important;
    }
    
    @page {
        size: A5 landscape !important;
        margin: 0.1cm !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .nav-right {
        flex-direction: column;
        width: 100%;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .fisa-body {
        margin: 1rem;
        padding: 1rem;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-col.half-width {
        max-width: 100%;
    }
    
    .evaluari-table {
        overflow-x: auto;
        margin-left: -1rem;
        margin-right: -1rem;
    }
    
    .evaluari-table table {
        min-width: 1200px; /* Ensure table maintains readability on small screens */
    }
    
    .container.evaluari-container {
        max-width: 100%;
        margin: 0.5rem auto; /* Reduced margin for mobile */
        padding: 0 0.5rem;
    }
    
    .signature-section {
        flex-direction: column;
        gap: 2rem;
    }
    
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Fișa de Aptitudine - A5 Landscape Optimized Styles */
.fisa-aptitudine-body {
    font-family: Arial, sans-serif;
    font-size: 12px;
    margin: 40px;
    background-color: white;
    color: black;
}

/* Background color for unsaved changes */
.fisa-unsaved-changes.fisa-aptitudine-body {
    background-color: #fff3cd !important; /* Light yellow background for unsaved changes */
}

.fisa-unsaved-changes {
    background-color: #fff3cd !important;
}

.fisa-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.fisa-label {
    width: 150px;
}

.fisa-label-inline {
    min-width: 120px;
    margin-left: 25px;
    white-space: nowrap;
    text-align: right;
}

.fisa-input-inline {
    width: 180px;
    flex-grow: 0;
}

.fisa-input-auto-width {
    min-width: 200px;
    max-width: 400px;
    width: auto;
    flex-grow: 0;
    flex-shrink: 0;
}

.fisa-input {
    flex-grow: 1;
    border: none;
    border-bottom: 1px solid black;
    font-size: 12px;
    padding: 2px 4px;
    outline: none;
    background: none;
}

.fisa-input-bold {
    font-weight: bold;
}

select.fisa-input {
    border: none;
    border-bottom: 1px solid black;
    font-size: 12px;
    padding: 2px 4px;
    background: none;
    outline: none;
    width: 100px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

textarea.fisa-input {
    resize: none;
}

input[type="date"].fisa-input {
    cursor: pointer;
    position: relative;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    appearance: auto !important;
    background: white !important;
    border: 1px solid #ccc !important;
    border-radius: 3px !important;
    padding: 2px 4px !important;
}

input[type="date"].fisa-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.7;
}

input[type="date"].fisa-input:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

input[type="date"].fisa-input:focus {
    outline: 1px solid #0078d4;
}

.date-picker {
    position: relative;
}

.date-picker.with-calendar {
    padding-left: 35px;
}

.date-picker:hover {
    background-color: #f5f5f5;
}

.date-picker:focus {
    outline: 1px solid #0078d4;
}

/* Hide calendar icon when printing */
@media print {
    .calendar-icon {
        display: none !important;
    }
    .date-picker {
        background-image: none !important;
        padding-left: 4px !important;
    }
}

.fisa-checkbox-label, 
.fisa-radio-label {
    margin-right: 20px;
    display: inline-block;
}

.fisa-radio-label input {
    margin-right: 5px;
}

.fisa-section-title {
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 10px;
    border-top: 2px solid black;
    padding-top: 5px;
}

.fisa-box {
    border: 1px solid black;
    padding: 10px;
    margin-top: 10px;
}

.fisa-signature {
    margin-top: 10px;
    justify-content: space-between;
    text-align: center;
}

.fisa-nav-buttons {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 10px;
}

.fisa-nav-buttons button, 
.fisa-nav-buttons a {
    padding: 8px 16px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
}

.fisa-nav-buttons button:hover, 
.fisa-nav-buttons a:hover {
    background: #45a049;
}

.fisa-nav-buttons .secondary {
    background: #6c757d;
}

.fisa-nav-buttons .secondary:hover {
    background: #5a6268;
}

.fisa-nav-buttons .save-new-button {
    background: #f39c12;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fisa-nav-buttons .save-new-button:hover {
    background: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.fisa-nav-buttons .save-new-button:active {
    transform: translateY(0);
}

.fisa-nav-buttons .back-link {
    background: #007bff;
}

.fisa-nav-buttons .back-link:hover {
    background: #0056b3;
}

.fisa-header-box {
    text-align: right;
    line-height: 1.5;
    border: 1px dotted #333;
    padding: 8px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.header-text {
    flex: 1;
    text-align: right;
}

.fisa-header-box strong {
    font-size: 14px;
}

.fisa-header-box span {
    font-size: 12px;
}

.fisa-main-title {
    text-align: center;
    font-size: 16px;
    margin-bottom: 15px;
}

.fisa-number-pending {
    font-size: 14px;
    color: #666;
    font-style: italic;
    font-weight: normal;
}

.fisa-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.fisa-two-column {
    display: flex;
    gap: 20px;
    align-items: center;
}

.fisa-flex-item {
    flex: 1;
    display: flex;
    align-items: center;
}

.fisa-narrow-label {
    width: 150px;
    white-space: nowrap;
}

.fisa-full-width {
    width: 100%;
    flex-grow: 1;
}

.fisa-conclusion-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.fisa-date-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Print Styles for A5 Landscape Fișa */
@media print {
    .fisa-aptitudine-body {
        @page {
            size: A5 landscape;
            margin: 7mm;
        }

        font-size: 9pt;
        line-height: 1.2;
        margin: 0;
        font-family: Arial, sans-serif;
    }

    .fisa-box {
        border: 1px dotted black;
        padding: 6px 8px;
        margin-bottom: 6px;
    }

    .fisa-aptitudine-body a {
        color: black;
        text-decoration: none;
        cursor: default;
    }

    .fisa-input {
        border: none;
        border-bottom: 1px solid black;
        font-size: 9pt;
        background: none;
        padding: 1px 3px;
    }
    
    .fisa-input-bold {
        font-weight: bold;
    }

    .fisa-aptitudine-body input[type="radio"],
    .fisa-aptitudine-body input[type="checkbox"] {
        transform: scale(1);
        margin-right: 4px;
    }

    .fisa-row {
        margin-bottom: 6px;
        display: flex;
        align-items: center;
    }

    .fisa-label {
        width: 160px;
        font-size: 9pt;
        flex-shrink: 0;
    }
    
    .fisa-label-inline {
        min-width: 100px;
        margin-left: 20px;
        font-size: 9pt;
        flex-shrink: 0;
        white-space: nowrap;
        text-align: right;
    }
    
    .fisa-input-inline {
        width: 180px;
        flex-grow: 0;
    }
    
    .fisa-input-auto-width {
        min-width: 200px;
        max-width: 400px;
        width: auto;
        flex-grow: 0;
        flex-shrink: 0;
    }

    .fisa-section-title {
        font-weight: bold;
        margin-top: 10px;
        margin-bottom: 6px;
        border-top: 1px solid black;
        padding-top: 3px;
        font-size: 10pt;
    }

    .fisa-main-title {
        font-size: 12pt;
        margin-bottom: 8px;
    }
    
    .fisa-number-pending {
        font-size: 10pt;
        color: #666;
        font-style: italic;
        font-weight: normal;
    }

    .fisa-signature {
        margin-top: 20px;
        text-align: center;
    }

    .fisa-stamp {
        border: 1px solid black;
        height: 70px;
        text-align: center;
        font-size: 8pt;
        padding: 4px;
    }
    
    .fisa-nav-buttons {
        display: none !important;
    }
    
    /* Hide all placeholders when printing - most comprehensive approach */
    input::placeholder {
        color: white !important;
        background: white !important;
        opacity: 0 !important;
        visibility: hidden !important;
        content: "" !important;
        font-size: 0 !important;
        text-indent: -9999px !important;
    }
    
    input::-webkit-input-placeholder {
        color: white !important;
        background: white !important;
        opacity: 0 !important;
        visibility: hidden !important;
        font-size: 0 !important;
        text-indent: -9999px !important;
    }
    
    input::-moz-placeholder {
        color: white !important;
        background: white !important;
        opacity: 0 !important;
        visibility: hidden !important;
        font-size: 0 !important;
        text-indent: -9999px !important;
    }
    
    input:-ms-input-placeholder {
        color: white !important;
        background: white !important;
        opacity: 0 !important;
        visibility: hidden !important;
        font-size: 0 !important;
        text-indent: -9999px !important;
    }
}

/* Auto-complete Suggestions Styles */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

.suggestion-item:active {
    background-color: #e0e0e0;
}

.suggestions-container {
    position: relative;
}

/* Autocomplete for Loc de munca */
.autocomplete-container {
    position: relative;
    width: 100%;
    flex-grow: 1;
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.autocomplete-suggestion {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

/* Edit Angajator Form Styles */
.edit-angajator-container {
    max-width: 800px;
    margin: 20px auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.edit-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
}

.edit-header h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
}

.edit-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.edit-form {
    padding: 30px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-danger:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Responsive design for edit form */
@media (max-width: 768px) {
    .edit-angajator-container {
        margin: 10px;
        border-radius: 0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Settings Page Styles */
.setari-header {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.setari-header h2 {
    margin: 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setari-header p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

.setari-table {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.setari-table table {
    width: 100%;
    border-collapse: collapse;
}

.setari-table th,
.setari-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.setari-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.setari-table tr:hover {
    background-color: #f8f9fa;
}

.setare-name {
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-family: 'Courier New', monospace;
    padding: 16px;
    border-radius: 6px;
    display: inline-block;
    min-width: 120px;
    text-align: center;
}

.setare-value {
    color: #555;
    word-break: break-word;
    max-width: 300px;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: white;
    color: #333;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e0e0e0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.modal-close {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.modal-close:hover {
    opacity: 1;
}

.modal form {
    padding: 20px;
}

.modal .form-group {
    margin-bottom: 20px;
}

.modal .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.modal .form-group input,
.modal .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.modal .form-group input:focus,
.modal .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.modal .form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Development Warning Modal Styles */
.development-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.development-modal-content {
    background-color: #dc3545;
    border-radius: 15px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 5px solid #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.development-warning-header {
    margin-bottom: 30px;
}

.development-warning-header i {
    font-size: 48px;
    color: #fff;
    margin-bottom: 15px;
}

.development-warning-header h2 {
    color: #fff;
    font-size: 36px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.development-warning-body {
    margin-bottom: 30px;
}

.development-warning-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.4;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.development-warning-footer {
    margin-top: 30px;
}

.btn-development-accept {
    background-color: #fff;
    color: #dc3545;
    border: 3px solid #fff;
    padding: 15px 40px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-development-accept:hover {
    background-color: #dc3545;
    color: #fff;
    transform: scale(1.05);
}

/* Settings Icon Styling */
.nav-link i.fa-cog {
    font-size: 16px;
}

/* Apt si pentru checkbox styling */
.apt-si-pentru-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    width: 100%;
    box-sizing: border-box;
}

.apt-checkbox-item {
    display: flex;
    align-items: center;
}

.apt-checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    gap: 8px;
    padding: 4px 0;
    transition: background-color 0.2s ease;
}

.apt-checkbox-label:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
    padding: 4px 8px;
}

.apt-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.apt-custom-container {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
}

.apt-custom-label {
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 8px;
    color: #333;
}

.apt-custom-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
    background: white;
}

.apt-custom-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

/* Print styles for apt si pentru */
@media print {
    .apt-si-pentru-container {
        border: none;
        background: transparent;
        max-height: none;
        overflow: visible;
        padding: 0;
        display: block;
        column-count: 2;
        column-gap: 20px;
    }
    
    .apt-checkbox-item {
        display: inline-block;
        margin-right: 15px;
        margin-bottom: 5px;
        break-inside: avoid;
    }
    
    .apt-checkbox-label {
        font-size: 11px;
        padding: 2px 0;
    }
    
    .apt-checkbox-label input[type="checkbox"] {
        width: 12px;
        height: 12px;
    }
    
    .apt-custom-container {
        column-span: all;
        margin-top: 10px;
        border-top: 1px solid #ddd;
        padding-top: 5px;
        break-before: always;
    }
    
    .apt-custom-label {
        font-size: 11px;
        margin-bottom: 3px;
    }
    
    .apt-custom-input {
        border: none;
        border-bottom: 1px solid black;
        background: transparent;
        padding: 2px 0;
        font-size: 11px;
    }
}

/* Responsive Design for Settings */
@media (max-width: 768px) {
    .setari-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .setari-table {
        overflow-x: auto;
    }
    
    .setari-table table {
        min-width: 600px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal .form-actions {
        flex-direction: column;
    }
    
    .modal .form-actions button {
        width: 100%;
    }
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.selected {
    background-color: #f0f8ff;
}

.autocomplete-suggestion:active {
    background-color: #e0e0e0;
}

/* Login Page Additional Styles */
.login-blocked {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.login-timer {
    font-size: 18px;
    font-weight: bold;
    color: #d32f2f;
    text-align: center;
    padding: 10px;
    background: #ffcdd2;
    border-radius: 4px;
    margin: 10px 0;
}

.timer-expired {
    color: #2e7d32;
    background: #c8e6c9;
}

.login-form.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.error-message {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
}

.warning-message {
    background: #fff3e0;
    border: 1px solid #ff9800;
    color: #e65100;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-weight: 500;
}

.login-info {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    color: #0d47a1;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.btn-login:disabled {
    background: #bdbdbd;
    color: #ffffff;
    cursor: not-allowed;
    border-color: #bdbdbd;
}

/* Evaluari List Page Styles */
.filters-container {
    background: white;
    padding: 5px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 10px;
    text-align: center;
}

.filters-row {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 500;
    color: #666;
}

.date-input, .per-page-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 100px;
}

.preset-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.preset-btn {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.preset-btn:hover {
    background: #e9ecef;
}

.preset-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.search-container {
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-box-inline {
    display: flex;
    flex: 1;
    align-items: center;
}

/* Date range flex layout */
.date-range-flex {
    display: flex;
    gap: 0px;
    align-items: center;
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px 0;
}

.pagination-info {
    font-size: 14px;
    color: #666;
}

.pagination-controls {
    display: flex;
    gap: 5px;
    align-items: center;
}

.pagination-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s;
}

.pagination-btn:hover:not(.disabled) {
    background: #f8f9fa;
}

.pagination-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Fisa Aptitudine Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    .apt-unchecked {
        display: none !important;
    }
}

/* Error Container Styles for Access Denied */
.error-container {
    text-align: center;
    padding: 50px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 50px auto;
}

.error-container h1 {
    color: #e74c3c;
    margin-bottom: 20px;
}

.error-container p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Version Info and Admin Settings Styles */
.version-info-section,
.user-management-section, .login-logs-section {
    margin-top: 40px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.version-info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.version-card, .changelog-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.version-card h4, .changelog-card h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
}

.version-details .version-item {
    padding: 5px 0;
    border-bottom: 1px solid #dee2e6;
}

.version-details .version-item:last-child {
    border-bottom: none;
}

.changelog-item {
    margin-bottom: 15px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border-left: 3px solid #dee2e6;
}

.changelog-item.current {
    border-left-color: #28a745;
    background: #f8fff9;
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.changelog-date {
    font-size: 12px;
    color: #6c757d;
}

.current-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: bold;
}

.changelog-changes {
    margin: 0;
    padding-left: 20px;
}

.changelog-changes li {
    font-size: 13px;
    color: #495057;
    margin-bottom: 3px;
}

.changelog-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.btn-version-history {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3c72 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-version-history:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2c5aa0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
    color: white;
    text-decoration: none;
}

.btn-version-history i {
    margin-right: 6px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .version-info-grid {
        grid-template-columns: 1fr;
    }
}

.section-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header h3 {
    margin: 0;
    color: #333;
}

.section-header p {
    margin: 5px 0 0 0;
    color: #666;
    font-size: 14px;
}

.users-table, .logs-table {
    overflow-x: auto;
}

.users-table table, .logs-table table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th, .users-table td,
.logs-table th, .logs-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.users-table th, .logs-table th {
    background: #f8f9fa;
    font-weight: 500;
    color: #666;
}

.user-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.user-status.active {
    background: #d4edda;
    color: #155724;
}

.user-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

.logged-in-user-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    cursor: default;
    transition: all 0.2s ease;
}

.logged-in-user-btn:hover {
    background: #218838;
    transform: scale(1.05);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.log-status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.log-status.success {
    background: #d4edda;
    color: #155724;
}

.log-status.failed {
    background: #f8d7da;
    color: #721c24;
}

.log-status.blocked {
    background: #d1ecf1;
    color: #0c5460;
}

.logs-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Evaluari Selection Styles */
.selection-info {
    margin: 15px 0;
    display: none;
}

.selection-bar {
    background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 100%);
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.selection-count {
    font-weight: 600;
    color: #1976d2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selection-count i {
    color: #4caf50;
}

.selection-actions {
    display: flex;
    gap: 10px;
}

.btn-bulk-action {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-bulk-action:not(.btn-danger) {
    background: #2196f3;
    color: white;
}

.btn-bulk-action:not(.btn-danger):hover {
    background: #1976d2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.btn-bulk-action.btn-danger {
    background: #f44336;
    color: white;
}

.btn-bulk-action.btn-danger:hover {
    background: #d32f2f;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.btn-bulk-action.btn-copy {
    background: #ff9800;
    color: white;
}

.btn-bulk-action.btn-copy:hover {
    background: #f57c00;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.evaluare-checkbox, #select-all-evaluari {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #2196f3;
    user-select: none;
}

.evaluari-table table th:first-child,
.evaluari-table table td:first-child {
    width: 60px;
    text-align: center;
    padding: 8px 4px;
}

.evaluari-table table td:first-child input[type="checkbox"] {
    margin-right: 6px;
}

@media (max-width: 768px) {
    .selection-bar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .selection-actions {
        justify-content: center;
    }
    
    .btn-bulk-action {
        flex: 1;
        justify-content: center;
    }
}

/* Footer Styles */
.app-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    padding: 15px 0;
    margin-top: 40px;
    font-size: 12px;
    color: #666;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dev-badge {
    background: #ff9800;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.modal-header .close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.modal-header .close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/* History Timeline Styles */
.history-timeline {
    position: relative;
}

.history-item {
    display: flex;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background-color: #fff;
    position: relative;
}

.history-item.history-creation {
    border-left: 4px solid #28a745;
    background-color: #f8fff9;
}

.history-item.history-modification {
    border-left: 4px solid #007bff;
    background-color: #f8f9ff;
}

.history-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.history-creation .history-icon {
    background-color: #28a745;
    color: white;
}

.history-modification .history-icon {
    background-color: #007bff;
    color: white;
}

.history-meta {
    flex: 1;
}

.history-operator {
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.history-timestamp {
    color: #666;
    font-size: 12px;
}

.history-changes {
    color: #555;
    line-height: 1.4;
    margin-left: 55px;
}

/* Button Styles */
.btn-edit, .btn-delete, .btn-history {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 5px;
    border-radius: 3px;
    transition: all 0.2s;
}

.btn-edit {
    color: #007bff;
}

.btn-edit:hover {
    background-color: #e7f3ff;
}

.btn-delete {
    color: #dc3545;
}

.btn-delete:hover {
    background-color: #f8d7da;
}

.btn-history {
    color: #6c757d;
}

.btn-history:hover {
    background-color: #e9ecef;
}

/* Error message styles */
.error-message {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* Company link styles */
.company-link {
    color: #007bff !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.company-link:hover {
    color: #0056b3 !important;
    text-decoration: underline !important;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.modal-header .close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-header .close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
}
