/* 전역 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Malgun Gothic', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 100px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 헤더 */
header {
    background: white;
    padding: 25px 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

header h1 {
    color: #333;
    font-size: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

header h1 i {
    color: #FF5722;
}

.header-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* 버튼 스타일 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-back {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-save {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.btn-danger {
    background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
}

/* 정보 배너 */
.info-banner {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-left: 4px solid #2196F3;
}

.info-banner i {
    color: #2196F3;
    font-size: 20px;
}

.info-banner span {
    color: #555;
    line-height: 1.6;
}

/* 차량 섹션 */
.vehicle-section {
    background: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid #f0f0f0;
}

.section-header h2 {
    font-size: 22px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h2 i {
    color: #667eea;
}

.vehicle-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

/* 차량 그리드 */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.vehicle-input-wrapper {
    position: relative;
}

.vehicle-input-wrapper label {
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
    font-weight: bold;
}

.vehicle-input-wrapper input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    font-weight: bold;
}

.vehicle-input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.vehicle-input-wrapper input.filled {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.vehicle-input-wrapper .clear-btn {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: #f44336;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.vehicle-input-wrapper input.filled + .clear-btn {
    display: flex;
}

.vehicle-input-wrapper .clear-btn:hover {
    background: #d32f2f;
    transform: rotate(90deg);
}

/* 하단 고정 버튼 */
.bottom-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 1000;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    body {
        padding: 10px;
        padding-bottom: 100px;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 24px;
    }

    .vehicle-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 14px;
    }

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

    .bottom-actions .btn {
        width: 100%;
    }
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vehicle-section {
    animation: fadeIn 0.3s ease-out;
}

/* 로딩 상태 */
.loading {
    text-align: center;
    padding: 40px;
    color: #888;
}

.loading i {
    font-size: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
