* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', sans-serif;
    background: #f8f9fa;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 헤더 */
.header {
    background: #ffffff;
    color: #1a1a1a;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border-bottom: 1px solid #e5e7eb;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.logo .subtitle {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 400;
}

.header-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.datetime {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
}

.user-info {
    padding: 0.5rem 1rem;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    color: #0f172a;
    font-weight: 500;
    transition: background 0.2s;
}

.user-info:hover {
    background: #e2e8f0;
}

/* 사용자 드롭다운 */
.user-dropdown {
    position: relative;
}

.user-dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 0.5rem;
    background: white;
    min-width: 150px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    border-radius: 8px;
    overflow: hidden;
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-content a:hover {
    background: #f5f5f5;
}

/* 메인 콘텐츠 */
.main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* 사이드바 */
.sidebar {
    width: 240px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 1.5rem 0;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.nav-item:hover {
    background: #f8fafc;
    color: #0f172a;
}

.nav-item.active {
    background: #3b82f6;
    color: #ffffff;
}

.nav-item .icon {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* 메인 영역 */
.main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    background: #f8f9fa;
}

/* 통계 카드 */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-title {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.875rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.02em;
}

/* 대시보드 그리드 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

/* 카드 */
.card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafbfc;
}

.card-header h2 {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-body {
    padding: 1.5rem;
}

.map-card {
    grid-column: span 8;
    height: 500px;
}

.chart-card {
    grid-column: span 4;
    height: 500px;
}

.vehicle-list-card {
    grid-column: span 8;
}

.notification-card {
    grid-column: span 4;
}

/* 테넌트 목록 */
.tenant-list-card {
    grid-column: span 12;
}

.tenant-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.tenant-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.tenant-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.tenant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.tenant-header h4 {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 600;
}

.tenant-id {
    font-size: 0.75rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

.tenant-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.tenant-stat {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 8px;
}

.tenant-stat .label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.tenant-stat .value {
    font-weight: 600;
    color: #0f172a;
}

.text-success {
    color: #10b981 !important;
}

.text-warning {
    color: #f59e0b !important;
}

.text-danger {
    color: #ef4444 !important;
}

/* 지도 */
.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 8px;
    overflow: hidden;
}

.map-overlay {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.3) 1px, transparent 1px);
    background-size: 50px 50px;
}

#vehicleMarkers {
    position: relative;
    width: 100%;
    height: 100%;
}

.vehicle-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s;
    animation: pulse 2s infinite;
}

.vehicle-marker:hover {
    transform: scale(1.2);
    z-index: 10;
}

.vehicle-marker.active {
    border: 3px solid #4CAF50;
}

.vehicle-marker.idle {
    border: 3px solid #FF9800;
}

.vehicle-marker.warning {
    border: 3px solid #F44336;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    50% {
        box-shadow: 0 2px 20px rgba(102, 126, 234, 0.5);
    }
}

.vehicle-tooltip {
    position: absolute;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1000;
    display: none;
}

/* 차트 */
.chart-container {
    width: 100%;
    height: 380px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chart-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.chart-label {
    width: 80px;
    font-size: 0.9rem;
    color: #666;
}

.chart-bar-fill {
    flex: 1;
    height: 40px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 1rem;
    color: white;
    font-weight: 600;
    transition: width 1s ease-out;
}

.distance-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 300px;
    gap: 0.5rem;
    padding: 1rem 0;
}

.distance-bar {
    flex: 1;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px 8px 0 0;
    position: relative;
    min-height: 20px;
    transition: height 1s ease-out;
}

.distance-bar:hover {
    opacity: 0.8;
}

.distance-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.distance-label {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
}

/* 차량 테이블 */
.search-box input {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    width: 250px;
    outline: none;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.vehicle-table-wrapper {
    overflow-x: auto;
}

.vehicle-table {
    width: 100%;
    border-collapse: collapse;
}

.vehicle-table th {
    background: #f5f5f5;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid #ddd;
}

.vehicle-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.vehicle-table tbody tr:hover {
    background: #f9f9f9;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
    letter-spacing: 0.02em;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-idle {
    background: #fef3c7;
    color: #92400e;
}

.status-warning {
    background: #fee2e2;
    color: #991b1b;
}

/* 알림 */
.notification-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 600px;
    overflow-y: auto;
}

.notification-item {
    padding: 1rem;
    border-left: 3px solid #3b82f6;
    background: white;
    border-radius: 8px;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #3b82f6;
}

.notification-item:hover {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.notification-item.warning {
    border-left-color: #ef4444;
}

.notification-item.info {
    border-left-color: #06b6d4;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.notification-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.875rem;
}

.notification-time {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.notification-content {
    font-size: 0.875rem;
    color: #64748b;
}

/* 버튼 */
.btn-control {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.3s;
}

.btn-control:hover {
    background: #f5f5f5;
}

/* 반응형 */
@media (max-width: 1200px) {
    .map-card, .vehicle-list-card {
        grid-column: span 12;
    }
    
    .chart-card, .notification-card {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .nav-item span:not(.icon) {
        display: none;
    }
    
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chart-card, .notification-card {
        grid-column: span 12;
    }
}

/* 토스트 알림 */
.toast-notification {
    position: fixed;
    top: 80px;
    right: -350px;
    background: white;
    color: #0f172a;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    z-index: 10000;
    transition: right 0.3s ease-out;
    min-width: 300px;
    font-size: 0.875rem;
    font-weight: 500;
    border-left: 3px solid #3b82f6;
}

.toast-notification.show {
    right: 20px;
}

.toast-notification.toast-info {
    border-left-color: #2196F3;
}

.toast-notification.toast-success {
    border-left-color: #4CAF50;
}

.toast-notification.toast-warning {
    border-left-color: #FF9800;
}

.toast-notification.toast-error {
    border-left-color: #F44336;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 뷰 섹션 */
.view-section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 관리 화면 공통 스타일 */
.management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.management-header h3 {
    font-size: 1.5rem;
    color: #333;
}

/* 데이터 테이블 */
.data-table {
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.data-table thead {
    background: #667eea;
    color: white;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
}

.data-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.data-table tbody tr:hover {
    background: #f8fafc;
}

/* 버튼 스타일 */
.btn {
    padding: 0.625rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    color: #0f172a;
}

.btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-primary {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.btn-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
}

.btn-icon {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: transform 0.2s;
}

.btn-icon:hover {
    transform: scale(1.2);
}

/* 역할 뱃지 */
.role-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.role-superadmin {
    background: #fee2e2;
    color: #991b1b;
}

.role-admin {
    background: #dbeafe;
    color: #1e40af;
}

.role-user {
    background: #e0e7ff;
    color: #4338ca;
}

/* 테넌트 그리드 */
.tenant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.tenant-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.tenant-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.tenant-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.tenant-card-header h4 {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 600;
}

.tenant-badge {
    padding: 0.25rem 0.75rem;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tenant-card-stats {
    margin-bottom: 1rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #666;
}

.tenant-card-actions {
    display: flex;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid #f5f5f5;
}

/* 위치 추적 화면 */
.tracking-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    height: calc(100vh - 250px);
}

.tracking-map {
    height: 100%;
}

.tracking-sidebar {
    height: 100%;
    overflow-y: auto;
}

.tracking-vehicle-list {
    max-height: calc(100vh - 350px);
    overflow-y: auto;
}

.tracking-vehicle-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.tracking-vehicle-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.tracking-vehicle-item.selected {
    background: #eff6ff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.tracking-detail-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.tracking-detail-card .detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.tracking-detail-card .detail-header h4 {
    margin: 0;
    font-size: 1.125rem;
    color: #0f172a;
    font-weight: 600;
}

.tracking-detail-card .detail-body {
    margin-bottom: 1rem;
}

.tracking-detail-card .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.tracking-detail-card .detail-row .label {
    color: #64748b;
    font-weight: 500;
}

.tracking-detail-card .detail-row .value {
    color: #0f172a;
    font-weight: 600;
}

.tracking-detail-card .detail-actions {
    display: flex;
    gap: 0.5rem;
}

.vehicle-icon {
    font-size: 2rem;
}

.vehicle-info {
    flex: 1;
}

.vehicle-info strong {
    display: block;
    margin-bottom: 0.25rem;
}

.vehicle-info small {
    display: block;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.vehicle-status-row {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
}

/* 통계 화면 */
.stats-container {
    padding: 0;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stats-header h3 {
    font-size: 1.5rem;
    color: #0f172a;
    font-weight: 600;
    margin: 0;
}

.stats-filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.stats-filters select {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
}

.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card-large {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.stat-card-large h4 {
    margin-bottom: 1.5rem;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 600;
}

.chart-large {
    height: 280px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem 0;
}

.bar-chart {
    display: flex;
    gap: 1rem;
    height: 100%;
    align-items: flex-end;
    justify-content: space-around;
    width: 100%;
}

.bar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.bar {
    width: 100%;
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: all 0.3s;
    min-height: 30px;
}

.bar-value {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f172a;
}

.bar-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.horizontal-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.h-bar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.h-bar-label {
    width: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.h-bar-container {
    flex: 1;
    background: #f1f5f9;
    border-radius: 8px;
    height: 32px;
    overflow: hidden;
}

.h-bar {
    height: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 0.75rem;
    transition: width 0.5s ease;
}

.h-bar-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.line-chart {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 2rem 1rem 1rem 1rem;
}

.line-point {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.point-dot {
    width: 12px;
    height: 12px;
    background: #3b82f6;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.point-label {
    position: absolute;
    bottom: -30px;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.stats-table-section {
    margin-top: 2rem;
}

/* 연료 게이지 */
.fuel-gauge {
    text-align: center;
}

.gauge-circle {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
}

.gauge-circle svg {
    width: 100%;
    height: 100%;
}

.gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: #4CAF50;
}

/* 가동률 표시 */
.utilization-display {
    text-align: center;
}

.utilization-bar {
    width: 100%;
    height: 40px;
    background: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.utilization-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 1s ease-out;
}

.utilization-text {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

/* 알림 화면 */
.alerts-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.alert-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.alert-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.alert-item.warning {
    border-left-color: #FF9800;
}

.alert-icon {
    font-size: 2rem;
}

.alert-content {
    flex: 1;
}

.alert-content h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.alert-content p {
    color: #666;
    margin-bottom: 0.5rem;
}

.alert-content small {
    color: #999;
    font-size: 0.85rem;
}

/* 보고서 화면 */
.reports-container h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.report-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.report-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s;
}

.report-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.report-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.report-card h4 {
    margin-bottom: 0.5rem;
    color: #333;
}

.report-card p {
    color: #666;
    font-size: 0.9rem;
}

/* 설정 화면 */
.settings-container h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.settings-section {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.settings-section h4 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.setting-item select,
.setting-item input[type="number"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* 모달 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s;
}

.modal-dialog {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #fafbfc;
}

.modal-header h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: #64748b;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    text-align: right;
    background: #fafbfc;
}

.detail-table {
    width: 100%;
}

.detail-table th,
.detail-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.detail-table th {
    font-weight: 500;
    color: #64748b;
    width: 150px;
    font-size: 0.875rem;
}

.detail-table td {
    color: #0f172a;
    font-size: 0.875rem;
}

.vehicle-marker.selected {
    border: 4px solid #FFD700 !important;
    transform: scale(1.3);
    z-index: 100;
}

/* 메시지 스타일 */
.message-item {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}

.message-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.message-item.unread {
    border-left: 3px solid #f59e0b;
    background: #fffbeb;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f5f5f5;
}

.message-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.message-meta strong {
    color: #333;
    font-size: 0.95rem;
}

.message-vehicle {
    color: #667eea;
    font-size: 0.85rem;
}

.message-time {
    font-size: 0.85rem;
    color: #999;
}

.message-body {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

.unread-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #FF9800;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* 감사로그 스타일 */
.audit-log-container h3 {
    font-size: 1.5rem;
    color: #333;
}

.audit-actions {
    display: flex;
    gap: 0.5rem;
}

.audit-stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.audit-stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.audit-stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.audit-stat-card .stat-info {
    display: flex;
    flex-direction: column;
}

.audit-stat-card .stat-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.audit-stat-card .stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.audit-filters-panel {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666;
}

.filter-group select,
.filter-group input[type="date"] {
    padding: 0.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
}

.audit-type-stats {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.audit-type-stats h4 {
    margin-bottom: 1rem;
    color: #333;
}

.type-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.type-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.type-label {
    color: #666;
    font-size: 0.9rem;
}

.type-count {
    font-weight: 700;
    color: #667eea;
    font-size: 1.1rem;
}

.audit-log-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.audit-log-table-container .data-table {
    margin: 0;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

.badge-type {
    background: #e3f2fd;
    color: #1565c0;
}

.badge-action {
    background: #f3e5f5;
    color: #6a1b9a;
}

.audit-log-detail .detail-table pre {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* 보상/캐시 스타일 */
.reward-container h3 {
    font-size: 1.5rem;
    color: #333;
}

.reward-wallet-section {
    margin-bottom: 2rem;
}

.wallet-card {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 16px;
    padding: 2rem;
    color: white;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.25);
}

.wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.wallet-header h4 {
    font-size: 1rem;
    margin: 0;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.wallet-balance {
    text-align: center;
    margin-bottom: 2rem;
}

.balance-label {
    display: block;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.balance-amount {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.wallet-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.wallet-stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.wallet-stat .stat-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.wallet-stat .stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
}

.reward-budget-section,
.reward-points-section,
.reward-history-section {
    margin-bottom: 2rem;
}

.budget-form {
    padding: 1rem;
}

.form-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.5rem;
}

.budget-actions {
    display: flex;
    gap: 1rem;
}

/* 운전자 대시보드 스타일 */
.driver-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-vehicle-detail,
.dashboard-messages {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f1f5f9;
}

.detail-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
}

.detail-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.detail-value {
    font-size: 0.875rem;
    color: #0f172a;
    font-weight: 600;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p {
    color: #64748b;
    margin: 0.5rem 0;
}

.message-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #e2e8f0;
    transition: all 0.2s;
}

.message-item.unread {
    background: #eff6ff;
    border-left-color: #3b82f6;
}

.message-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.message-from {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.9rem;
}

.message-time {
    font-size: 0.8rem;
    color: #94a3b8;
}

.message-body {
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.message-vehicle {
    font-size: 0.8rem;
    color: #64748b;
}

/* 차량 선택 모달 */
.vehicle-selection-modal {
    max-width: 800px;
}

.current-vehicle-info {
    margin-bottom: 1.5rem;
}

.current-vehicle-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 1rem;
}

.vehicle-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.vehicle-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.vehicle-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.vehicle-card.current {
    border-color: #10b981;
    background: #f0fdf4;
}

.vehicle-card-icon {
    font-size: 2rem;
}

.vehicle-card-info {
    flex: 1;
}

.vehicle-card-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0 0 0.25rem 0;
}

.vehicle-card-info p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

.vehicle-stats-mini {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
    .driver-dashboard {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .vehicle-selection-grid {
        grid-template-columns: 1fr;
    }
}
