/* ===== Reset & Base Styles ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background-color: #3d3d3d;
    color: #e2e2e2;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    text-align: center;
}

p {
    text-align: center;
    color: #c7c7c7;
}

/* ===== Top Bar ===== */
.topBar {
    width: 100%;
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px 20px;
}

.imageContainer {
    position: absolute;
    right: 20px;
}

.imageContainer img {
    display: block;
    max-height: 50px;
    height: auto;
    width: auto;
}

/* ===== Buttons ===== */
button {
    height: 50px;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    border: 2px solid #32c8ff;
    background-color: #faf9f7;
    color: #222;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

button:hover {
    background-color: rgba(115, 222, 255, 0.6);
    box-shadow: 0 6px 8px rgba(0,0,0,0.15);
}

button:active {
    background-color: #004494;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.5);
}

/* ===== Inputs & Selects ===== */
input[type="date"], select, .numberInput {
    font-size: 16px;
    padding: 10px;
    border-radius: 8px;
    border: 2px solid #cecece;
    text-align: center;
    transition: border-color 0.3s;
    width: 100%;
    max-width: 300px;
    margin: 5px auto;
    display: block;
}

input[type="date"]:focus, select:focus, .numberInput:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0,123,255,0.6);
    outline: none;
}

select {
    appearance: none;
    background-color: #fff;
    font-weight: bold;
    cursor: pointer;
}

select:hover {
    border-color: #007bff;
}

select:disabled {
    background-color: #f2f2f2;
    cursor: not-allowed;
}

/* ===== Forms & Containers ===== */
.submitBox {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

label {
    display: block;
    color: #c7c7c7;
    font-size: 18px;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* ===== Homepage Options ===== */
.homepageOption {
    width: 90%;
    max-width: 400px;
    min-height: 7vh;
    background-color: #4b4b4b;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #dfdfdf;
    margin: 10px auto;
    text-align: center;
    transition: all 0.4s ease;
}

.homepageOption:hover {
    background-color: #7ebfdd;
}

/* ===== Table Styling ===== */
#buildDetailTable {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    display: flex;
    justify-content: center;
}

#buildDetailTable table {
    width: 100%;
    max-width: 60vw;
    border-collapse: collapse;
    min-width: 400px;
}

#buildDetailTable th, #buildDetailTable td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
    color: #333333;
}

#buildDetailTable th {
    background-color: #222;
}

#buildDetailTable tr:nth-child(even) {
    background-color: #8d8d8d;
}

/* ===== Navbar ===== */
.navBar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    background-color: #262626;
    padding: 10px;
}

.navBar a {
    text-decoration: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    transition: background 0.3s;
}

.navBar a:hover {
    background-color: #007bff;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    .topBar {
        flex-direction: column;
        padding: 10px;
    }

    .imageContainer {
        position: relative;
        right: 0;
        margin-top: 10px;
    }

    button {
        width: 90%;
        margin: 5px auto;
    }

    #buildDetailTable table {
        min-width: 300px;
    }

    .homepageOption {
        width: 95%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2rem;
    }

    input[type="date"], select, .numberInput {
        max-width: 90%;
    }

    .navBar {
        flex-direction: column;
    }
}
