body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.header-section h2 {
    color: #333;
    margin: 0;
}

.filter-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-form select, .filter-form button {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.filter-form button {
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.filter-form button:hover {
    background: #0056b3;
}

.tab-container { 
    margin: 20px 0; 
}

.tab-buttons { 
    display: flex; 
    flex-wrap: wrap;
    margin-bottom: 10px; 
    gap: 5px;
}

.tab-btn { 
    padding: 12px 20px; 
    background: #f0f0f0; 
    border: 1px solid #ccc; 
    cursor: pointer; 
    border-radius: 5px 5px 0 0;
    transition: all 0.3s;
}

.tab-btn.active { 
    background: #007bff; 
    color: white; 
}

.tab-content { 
    display: none; 
    padding: 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 0 5px 5px 5px;
}

.tab-content.active { 
    display: block; 
}

.form-section { 
    background: #f8f9fa; 
    padding: 20px; 
    margin: 15px 0; 
    border-radius: 8px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.form-section h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

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

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

.form-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input, .form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.btn-primary {
    background: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-danger {
    background: #dc3545;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-success {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
}

.btn-success:hover {
    background: #218838;
}

table { 
    width: 100%; 
    border-collapse: collapse; 
    margin: 15px 0; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

th, td { 
    padding: 12px; 
    text-align: left; 
    border: 1px solid #ddd; 
}

th { 
    background-color: #f2f2f2; 
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #e9ecef;
}

.mobile-friendly {
    overflow-x: auto;
}

.alert {
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    border: 1px solid transparent;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.welcome-box {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
}

.role-badge {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-top: 10px;
}

.nav-container {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.nav-container nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.nav-container a {
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    text-decoration: none;
    color: #495057;
    transition: all 0.3s;
}

.nav-container a:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.info-box {
    background: #e7f3ff;
    border-left: 4px solid #007bff;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.section { 
    background: #fff; 
    padding: 15px; 
    margin: 15px 0; 
    border-radius: 6px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

.no-data { 
    text-align: center; 
    padding: 20px; 
    color: #666; 
    font-style: italic; 
}

.flex-container { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
}

.flex-item { 
    flex: 1; 
    min-width: 300px; 
}

@media (max-width: 768px) {
    .header-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-btn {
        border-radius: 5px;
        margin-bottom: 5px;
    }
    
    .tab-content {
        border-radius: 5px;
    }
    
    .flex-container {
        flex-direction: column;
    }
    
    .nav-container nav {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        font-size: 16px;
    }
    
    .container {
        padding: 15px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    /* Ascunde coloanele secundare din tabele pe mobil */
    table {
        width: 100%;
    }
    
    th, td {
        padding: 8px 5px;
        font-size: 14px;
    }
    
    /* Butoane mai mari pentru atingere ușoară */
    button, .tab-btn, .special-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== ÎMBUNĂTĂȚIRI GENERALE PENTRU MOBILE ===== */
/* Previne zoom-ul automat pe câmpurile de input pe iOS */
@media screen and (max-width: 767px) {
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Face butoanele mai ușor de apăsat pe touchscreen */
button, a {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Improve readability on small devices */
.mobile-friendly {
    line-height: 1.5;
}

/* Container principal responsive */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}