/* Taiwan eVisa Portal - Custom CSS */

/* ===== ROOT VARIABLES ===== */
:root {
    --primary-color: #0066cc;
    --primary-dark: #004499;
    --primary-light: #3385d6;
    --secondary-color: #dc3545;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --darker-color: #212529;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-darker { background-color: var(--darker-color) !important; }

/* ===== BUTTONS ===== */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.375rem 1rem;
    font-size: 0.9rem;
}

/* ===== HEADER STYLES ===== */
.header-main {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
}

.top-bar {
    font-size: 0.85rem;
}

.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: var(--dark-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background-color: rgba(0, 102, 204, 0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: var(--transition);
    color: var(--dark-color);
}

.dropdown-item:hover {
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
}

.quick-access-bar {
    border-top: 1px solid #dee2e6;
}

.quick-access-bar a {
    color: var(--dark-color);
    transition: var(--transition);
}

.quick-access-bar a:hover {
    background-color: rgba(0, 102, 204, 0.1);
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('../images/taiwan-pattern.png') repeat; */
    opacity: 0.1;
    z-index: 1;
}

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

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.hero-stats {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: var(--light-color);
    border-bottom: 1px solid #dee2e6;
    padding: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* ===== TABLES ===== */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-color: #dee2e6;
    vertical-align: middle;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 102, 204, 0.05);
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 102, 204, 0.1);
}

/* ===== INTERACTIVE MAPS ===== */
.map-container {
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin: 2rem 0;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 0.75rem;
}

/* ===== SECTIONS ===== */
.section {
    padding: 2rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.bg-light-section {
    background-color: #f8f9fa;
}

/* ===== PROCESS STEPS ===== */
.process-steps {
    display: flex;
    justify-content: space-between;
    /*align-items: center;*/
    margin: 1.5rem 0;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    z-index: 1;
}

.process-step {
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
    border: 3px solid var(--primary-color);
    position: relative;
    z-index: 2;
    box-shadow: var(--box-shadow);
}

.step-content {
    /*text-align: center;*/
    margin-top: 1rem;
}

.step-title {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* ===== ALERTS & NOTIFICATIONS ===== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem ;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    border-left-color: var(--info-color);
    color: #0c5460;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-left-color: var(--success-color);
    color: #155724;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-left-color: var(--warning-color);
    color: #856404;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-left-color: var(--secondary-color);
    color: #721c24;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 4rem;
}

.footer-section h6 {
    color: var(--primary-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--primary-light) !important;
    text-decoration: underline;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.contact-info .fa {
    width: 20px;
    text-align: center;
}

/* ===== BACK TO TOP BUTTON ===== */
.btn-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--box-shadow);
    z-index: 1000;
    transition: var(--transition);
}

.btn-floating:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1560px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}

/* Medium screens */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .process-steps {
        flex-direction: column;
        gap: 1rem;
    }
    
    .process-steps::before {
        display: none;
    }
}

/* Small screens */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .hero-stats {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
    
    .btn-floating {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Extra small screens */
@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .card-body {
    padding: 10px;
}
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .map-legend {
        position: static;
        margin-top: 1rem;
    }

    .alert {
    
    padding: 10px ;
   
}
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-left {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-right {
    animation: fadeInRight 0.6s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.rounded-lg {
    border-radius: 12px !important;
}

.shadow-lg {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.lh-sm {
    line-height: 1.25 !important;
}

.lh-lg {
    line-height: 2 !important;
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100%;
}
.content-section {
    padding: 3rem 0;
}
@media (max-width: 1200px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 2rem 0;
    }
}
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .section-title h2 {
        font-size: 1.75rem;
    }

    .brand-text h1 {
        font-size: 1.5rem;
    }
    
    .brand-text span {
        font-size: 0.75rem;
    }
    
    .taiwan-flag-icon {
        font-size: 2rem;
    }
}
/* Animation Classes */
/* .fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
} */

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--taiwan-white);
    animation: spin 1s ease-in-out infinite;
}

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

/* Utility Classes */
.text-taiwan-blue { color: var(--taiwan-blue) !important; }
.text-taiwan-red { color: var(--taiwan-red) !important; }
.bg-taiwan-blue { background-color: var(--taiwan-blue) !important; }
.bg-taiwan-red { background-color: var(--taiwan-red) !important; }
.bg-taiwan-light-blue { background-color: var(--taiwan-light-blue) !important; }
.bg-taiwan-light-red { background-color: var(--taiwan-light-red) !important; }

/* Content Typography */
.content-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--taiwan-text-light);
}

.content-text h2,
.content-text h3,
.content-text h4 {
    color: var(--taiwan-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-text ul,
.content-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.content-text li {
    margin-bottom: 0.5rem;
    color: var(--taiwan-text-light);
}
.btn-hero-primary {
    background: linear-gradient(135deg, var(--taiwan-red), #FF4569);
    color: var(--taiwan-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.4);
    color: var(--taiwan-white);
}