/* 기본 레이아웃 및 배경 */
body {
    background-color: #1e1e1e;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Hero 섹션 */
.hero {
    background: url('https://source.unsplash.com/1600x900/?dump-truck') no-repeat center center/cover;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: bold;
    position: relative;
    z-index: 2;
    margin: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Form 및 Input 스타일링 */
form {
    margin: 40px 0;
}

form label {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: block;
}

form input[type="text"],
form input[type="number"],
form input[type="date"],
form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    background: #333;
    color: #fff;
}

form input[disabled] {
    background: #555;
    cursor: not-allowed;
}

form button {
    display: inline-block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #218838;
}

/* 표 스타일링 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table,
th,
td {
    border: 1px solid #444;
}

th,
td {
    padding: 15px;
    text-align: center;
}

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

td {
    background-color: #222;
    color: #ffffff;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
    border-radius: 5px;
}

.table-container::-webkit-scrollbar {
    width: 6px;
}

.table-container::-webkit-scrollbar-thumb {
    background-color: #444;
    border-radius: 10px;
}

/* 휘발유 가격 및 연도 셀렉트박스 */
.header-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 20px;
}

.header-controls select {
    background: #333;
    color: #fff;
    border: 1px solid #444;
    padding: 10px;
    margin-left: 20px;
    border-radius: 5px;
    font-size: 1rem;
}

.header-controls .fuel-price {
    font-size: 1.2rem;
    margin-right: 10px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    form button {
        font-size: 1rem;
    }

    form label,
    form input,
    form select {
        font-size: 0.9rem;
    }

    .header-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-controls .fuel-price {
        margin-bottom: 10px;
    }
}

