/* ===== Base ===== */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

/* 상단 진남색 헤더 */
.header {
    width: 100%;
    background-color: #0f1f4d;
    /* 진남색 */
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 공통 카드 컨테이너 (로그인/차량 화면 공용) */
.login-container,
.container {
    background-color: #fff;
    margin-top: 30px;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 400px;
}

h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-size: 22px;
}

label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 20px;
}

/* 입력 요소 공통 */
input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

/* 버튼 공통 */
button {
    width: 100%;
    padding: 14px;
    background-color: #2563eb;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

button:hover {
    background-color: #1d4ed8;
}

/* ===== 차량 선택 전용 ===== */
.search-box {
    display: flex;
    margin-bottom: 20px;
}

.search-box input {
    flex: 1;
    padding: 10px 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.car-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.car-btn {
    background-color: #2563eb;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s;
}

.car-btn:hover {
    background-color: #1d4ed8;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {

    .login-container,
    .container {
        margin-top: 20px;
        padding: 20px 15px;
    }

    h2 {
        font-size: 20px;
    }

    .header {
        font-size: 18px;
        padding: 15px 0;
    }

    input,
    button {
        font-size: 18px;
    }
}

.unit-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.unit-wrap input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.unit {
    color: #555;
    font-size: 16px;
    white-space: nowrap;
}

/* ===== Page-specific container backgrounds ===== */

/* 운행일지 입력 페이지 */
body.page-input .container {
    background-color: #f0f6ff !important;
    /* 은은한 하늘색 톤 */
    border: 1px solid #c5dbff;
    box-shadow: 0 4px 18px rgba(0, 80, 200, 0.1);
}

/* 운행일지 조회 페이지 */
body.page-view .container {
    background-color: #fff9f0 !important;
    /* 따뜻한 크림톤 */
    border: 1px solid #ffe4b5;
    box-shadow: 0 4px 18px rgba(200, 120, 0, 0.1);
}

/* 두 페이지 모두 기존 공통 padding 유지 */
body.page-input .container,
body.page-view .container {
    transition: background-color 0.3s ease;
}