/* === Modernized Layout: Medicina Aeronautică (v2) === */
/* Compatibil cu structura existentă */

:root {
    --primary-color: #0078a7;
    --primary-dark: #005b84;
    --accent-color: #00a3c7;
    --bg-light: #f4f6f8;
    --bg-white: #ffffff;
    --text-dark: #1e2a32;
    --border-color: #d0d7de;
    --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.08);
    --radius: 4px; /* ← raza de colț redusă */
    --transition: all 0.3s ease;
    --font-main: "Segoe UI", Roboto, Arial, sans-serif;
}

/* Global */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* === HEADER & NAVBAR === */
#wideTop {
    width: 100%;
    background-color: var(--primary-color); /* culoare ca footer */
    box-shadow: var(--shadow-soft);
}

#top {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 3%;
    box-sizing: border-box;
    color: #ffffff;
}

/* Denumirea site-ului în navbar */
#top h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    letter-spacing: 0.5px;
}
#distantier{
    width: 100%;}
#divMenuBar {
    float: left ;}

/* Dropdown compatibil */
ul.meniuPrincipal > .dropDownList { position: relative; }
ul.meniuPrincipal ul {
    display: none;
    position: absolute;
    background-color: var(--primary-dark);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    top: 100%;
    left: 0;
    z-index: 20;
}
ul.meniuPrincipal > li:hover ul { display: block; }
ul.meniuPrincipal ul li a {
    padding: 0.6rem 1.2rem;
    white-space: nowrap;
}

/* === MAIN AREA === */
#mainWide {
    width: 100%;
    padding: 0.5rem 0;
    background-color: var(--bg-light);
}

#main {
    width: 95%;
    margin: 0 auto;
    min-height: 70vh;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
    box-sizing: border-box;
}

#right_column {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.5rem;
    min-height: 60vh;
}

/* === FOOTER === */
#bottomWide {
    width: 100%;
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    margin-top: 2rem;
}

#bottom {
    width: 90%;
    margin: 0 auto;
}

/* === BUTTONS === */
.buttonClass, .buttonClassSmall, .buttonClassRed, .buttonClassSmallRed {
    display: inline-block;
    padding: 0.4rem 0.3rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: white;
    text-decoration: none;
}

.buttonClass, .buttonClassSmall {
    background-color: var(--primary-color);
}
.buttonClass:hover, .buttonClassSmall:hover {
    background-color: var(--primary-dark);
}

.buttonClassRed, .buttonClassSmallRed {
    background-color: #c0373a;
}
.buttonClassRed:hover, .buttonClassSmallRed:hover {
    background-color: #a72d2f;
}

/* === FORMS === */
fieldset {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    background-color: var(--bg-white);
}

legend {
    font-weight: 600;
    color: var(--primary-dark);
}

input.textEntry,
input.passwordEntry {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-sizing: border-box;
    font-size: 1rem;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 120, 167, 0.15);
}

/* === UTILITY CLASSES === */
.alignRight { text-align: right; }
.alignRightBold { text-align: right; font-weight: bold; }
.textGreen { color: #2e7d32; }
.left { text-align: left; }
.red { color: #d32f2f; }
.bold { font-weight: 600; }
.width100 { width: 100%; }

.clear { clear: both; }


.tdAlignTop
{
    vertical-align:top;
}
/* === FIELDSETS === */
.fieldSet1, .fieldSetVizite {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    background-color: #ffffce;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
}
.fieldSet2, .fieldSet3, .fieldSet4 {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    background-color: #f6fbfe;
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    #menu ul {
        flex-direction: column;
        text-align: center;
    }

    #top {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    #main {
        width: 98%;
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    body { font-size: 14px; }

    #menu a { padding: 0.75rem; }

    .buttonClass, .buttonClassSmall {
        width: 100%;
        text-align: center;
    }
}
