/* =========================================
   1. RESETARE ȘI SETĂRI GLOBALE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* =========================================
   2. NAVBAR & HERO (PAGINA PRINCIPALĂ)
   ========================================= */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 8%;
    z-index: 1000;
}

.logo img {
    height: 80px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 400;
}

.auth-btn {
    background-color: white;
    color: black !important;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600 !important;
}

.hero {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('hero_image_turbine.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: 5px;
}

.main-button {
    margin-top: 25px;
    padding: 15px 40px;
    font-size: 1.1rem;
    background-color: transparent;
    color: white;
    border: 2px solid white;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: 600;
}

.main-button:hover {
    background-color: white;
    color: #000;
    transform: scale(1.05);
}

/* =========================================
   3. SECȚIUNEA INFO (PAGINA PRINCIPALĂ)
   ========================================= */
.info-section {
    padding: 100px 10%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
}

.container-dual {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    width: 100%;
}

.info-box {
    flex: 1;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.info-box h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: #1a1a1a;
    border-bottom: 3px solid #ff4d4d;
    padding-bottom: 10px;
    display: inline-block;
}

/* =========================================
   4. DASHBOARD LAYOUT (SIDEBAR & MAIN)
   ========================================= */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background-color: #1a1a1a;
    color: white;
    padding: 30px 20px;
    position: fixed;
    height: 100%;
    z-index: 100;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #333;
    padding-bottom: 20px;
}

.sidebar-nav a {
    color: #bbb;
    text-decoration: none;
    display: block;
    padding: 15px 20px;
    margin-bottom: 8px;
    border-radius: 10px;
    transition: 0.3s;
}

.sidebar-nav a:hover, 
.sidebar-nav a.active {
    background-color: #ff4d4d;
    color: white;
}

.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 60px 8%;
    background-color: #f0f2f5;
}

/* =========================================
   5. TAB-URI, CARDURI ȘI WIZARD
   ========================================= */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

.step.hidden {
    display: none;
}

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

.app-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 25px;
}

/* =========================================
   6. FORMULAR DIRECT OBSERVATIONS (GRID & INT)
   ========================================= */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

.readonly-input {
    background-color: #f8f9fa;
    color: #666;
    border: 1px dashed #ccc !important;
}

/* Slider / Range */
input[type="range"] {
    width: 100%;
    accent-color: #ff4d4d;
    margin: 10px 0;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #999;
}

/* Buline INT (Radio) */
.int-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Împinge eticheta la stânga și butoanele la dreapta */
    background: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    /* Stil rotunjit profesional */
    border: 1px solid #eee;
    margin-bottom: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    animation: slideIn 0.3s ease-out;
}
.int-badge {
    display: inline-block;
    background: #f8f9fa;
    border: 1px solid #d1d8e0;
    color: #2d3436;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    margin-right: 4px;
    white-space: nowrap;
}

.int-badge b {
    color: #eb4d4b;
    /* Culoare roșie pentru cifra selectată (0-3) */
    font-size: 13px;
}

/* Forțează coloana de INT să fie suficient de lată */
td:nth-child(10) {
    min-width: 150px;
}
.radio-group {
    display: flex;
    gap: 25px;
    /* Spațiu egal între opțiunile 0, 1, 2, 3 */
    align-items: center;
}

.radio-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    user-select: none;
    min-width: 30px;
}

.radio-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    height: 22px;
    width: 22px;
    background-color: #f0f0f0;
    border-radius: 50%;
    margin-top: 5px;
    transition: all 0.2s ease;
    border: 2px solid #ddd;
    position: relative;
}

.radio-container:hover input~.checkmark {
    background-color: #e0e0e0;
}

.radio-container input:checked~.checkmark {
    background-color: #ff4d4d;
    border-color: #ff4d4d;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
}

/* Punctul alb din mijloc când e selectat */
.radio-container input:checked~.checkmark:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    transform: translate(-50%, -50%);
}

.dynamic-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 5px solid #ff4d4d;
    margin-bottom: 25px;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================
   7. HĂRȚI (LEAFLET CUSTOM)
   ========================================= */
#map-point, #map-path {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1; /* Pentru a nu se suprapune peste sidebar */
}
#map-legend {
    display: none; /* Ascuns default, JS îl afișează */
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border-left: 5px solid #ff4d4d;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.legend-entry {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
}

.hidden {
    display: none !important;
}

/* =========================================
   8. BUTOANE DE ACȚIUNE
   ========================================= */
.crm-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}

.crm-btn:hover {
    background-color: #e60000;
    transform: translateY(-2px);
}

.add-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.back-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* =========================================
   9. ALTE ELEMENTE (FIELD DATA, TABLES)
   ========================================= */
.drop-zone {
    width: 100%;
    height: 150px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.3s;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.data-table th, .data-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.checklist-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    height: 350px;
    overflow-y: auto;
    padding: 15px;
}


/* =========================================
   10. RESPONSIVITATE
   ========================================= */
@media (max-width: 900px) {
    .sidebar { width: 80px; padding: 20px 10px; }
    .sidebar h3, .sidebar-nav span { display: none; }
    .main-content { margin-left: 80px; }
    .container-dual { flex-direction: column; }
    .hero h1 { font-size: 2.5rem; }
}