/* Solution Page 1 - 시내/시외버스 ERP Styles */

/* 다크 모드 비활성화 - 항상 라이트 모드로 고정 */
.solution-hero,
.tab-content,
.module-container,
.tab-pane {
    color-scheme: light only;
}

/* CSS 변수 설정 */
:root {
    --primary-900: #0f172a;
    --primary-800: #1e293b;
    --primary-700: #334155;
    --primary-600: #475569;
    --primary-500: #64748b;
    --secondary-500: #10b981;
    --secondary-400: #059669;
    --secondary-300: #d1fae5;
    --accent-500: #f97316;
    --accent-400: #fb923c;
    --accent-300: #fdba74;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #10b981;
}

/* 히어로 섹션 */
.solution-hero {
    padding: 70px 0 60px !important;  /* solution3 기준으로 축소 - 2025년 9월 10일 오후 3:10 */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 250px; /* 최소 높이 축소 - 2025년 9월 10일 오후 3:10 */
}

.solution-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* 배경이 뒤에 위치하도록 */
    overflow: hidden; /* 자식 요소가 넘치지 않도록 */
}

.solution-hero .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.solution-hero .hero-slide.active {
    opacity: 1;
}

.solution-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    pointer-events: none; /* 오버레이가 클릭을 방해하지 않도록 */
}

.solution-hero .container {
    position: relative;
    z-index: 2; /* 콘텐츠가 배경 위에 표시되도록 */
}

.solution-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.solution-hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* 탭 네비게이션 */
.solution-tabs {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 80px;
    z-index: 100; /* 히어로 섹션 배경보다 위에 표시 */
}

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

.tabs-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-button {
    flex: 1;
    min-width: 150px;
    padding: 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--gray-600);
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tab-button:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--bg-secondary);
}

.tab-icon {
    font-size: 1.5rem;
}

.tab-label {
    font-size: 0.95rem;
}

/* 탭 콘텐츠 */
.tab-content {
    padding: 60px 0;
    min-height: 600px;
    background: white; /* 배경색 명확히 설정 */
    position: relative;
    z-index: 5; /* 히어로 배경보다 위에 */
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

/* 모듈 컨테이너 */
.module-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.module-header {
    text-align: center;
    margin-bottom: 60px;
}

.module-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.module-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto;
}

/* 배차&근태 탭 스타일 */
.dispatch-dashboard {
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4f8 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.module-card {
    background: white;
    border-radius: 16px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--secondary-300);
}

.card-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.gradient-1 { background: linear-gradient(90deg, #3b82f6, #8b5cf6); }
.gradient-2 { background: linear-gradient(90deg, #10b981, #3b82f6); }
.gradient-3 { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.gradient-4 { background: linear-gradient(90deg, #8b5cf6, #ec4899); }

.card-content {
    position: relative;
}

.module-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--secondary-400), var(--secondary-500));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin: 0 auto 25px;
}

.module-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.feature-list li {
    padding: 10px 0;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
}

.feature-list li i {
    color: var(--success);
    font-size: 1rem;
}

/* 급여관리 탭 특별 스타일 */
.salary-management .module-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border: 2px solid #e1e8ed;
}

.salary-management .module-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    border-color: var(--secondary-400);
    transform: translateY(-10px) scale(1.02);
}

.salary-management .module-icon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.salary-management .module-card h4 {
    font-size: 1.6rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.salary-management .feature-list li {
    font-size: 1.1rem;
    font-weight: 500;
    color: #1f2937;
}

.salary-management .feature-list li i {
    color: #6366f1;
    font-size: 1.1rem;
}

.salary-management .dashboard-grid {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: inset 0 3px 15px rgba(0, 0, 0, 0.05);
}

/* 화살표 버튼 제거 */

/* 공통관리 스타일 */
.common-management {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.management-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 35px;
    transition: all 0.3s;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.management-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #4f46e5;
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
}

.management-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    margin: 0 auto 25px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
    transition: all 0.3s;
}

.management-card:hover .management-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.4);
}

.management-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.management-features {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
    width: 100%;
}

.management-features li {
    padding: 10px 0;
    color: var(--gray-700);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.2s;
}

.management-features li:hover {
    color: #4f46e5;
    transform: translateX(5px);
}

.management-features li i {
    color: #10b981;
    font-size: 1rem;
}

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

/* 반응형 디자인 */
@media (max-width: 768px) {
    .solution-hero-title {
        font-size: 2rem;
    }
    
    .tabs-nav {
        justify-content: flex-start;
    }
    
    .tab-button {
        min-width: 120px;
        padding: 15px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 15px;
    }
    
    .common-management {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* 모바일 환경에서 카드 배경색 명시적 지정 */
    .module-card,
    .management-card,
    .dispatch-dashboard {
        background-color: #ffffff !important;
        color: var(--gray-900) !important;
    }
    
    .module-card h4,
    .management-title {
        color: var(--gray-900) !important;
    }
    
    .feature-list li,
    .management-features li {
        color: #000000 !important;  /* 순수 검은색 */
        opacity: 1 !important;
        -webkit-text-fill-color: #000000 !important;
        font-weight: 500 !important;
    }
}

@media (max-width: 1024px) {
    .module-container {
        padding: 0 15px;
    }
}
