/* 1DTS Theme - MEA Track & Trace Hub */

/* ===== CSS Variables ===== */
:root {
    --primary-color: #2CBDB9;
    --primary-dark: #24A5A1;
    --primary-light: #E8F8F7;
    --secondary-color: #F67068;
    --secondary-dark: #E55C54;
    --secondary-light: #FEF0EF;
    --dark-color: #1E3A5F;
    --dark-light: #2D4A6F;
    --text-dark: #2D3748;
    --text-muted: #718096;
    --text-light: #A0AEC0;
    --bg-light: #F7FAFC;
    --bg-white: #FFFFFF;
    --border-color: #E2E8F0;
    --success-color: #48BB78;
    --warning-color: #ED8936;
    --danger-color: #E53E3E;
    --info-color: #4299E1;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
}

/* ===== Global Styles ===== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Navbar ===== */
.navbar {
    background-color: var(--bg-white) !important;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.navbar-brand .brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.navbar-brand .brand-text {
    color: var(--dark-color);
}

.navbar-brand .brand-text span {
    color: var(--primary-color);
}

.navbar-brand .brand-text-container {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.navbar-brand .powered-by-nav {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-top: -2px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--primary-color) !important;
    background-color: var(--primary-light);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background-color: var(--primary-light);
}

.nav-item.dropdown .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem;
}

/* Tighter navbar on widths where the full nav is shown (xxl ≥ 1400) but space is constrained.
   Below 1400 the hamburger menu is used so this rule no longer applies there. */
@media (min-width: 1400px) and (max-width: 1799.98px) {
    .navbar > .container { max-width: 100%; padding-left: 1rem; padding-right: 1rem; }
    .navbar .nav-link { padding: 0.5rem 0.55rem !important; font-size: 0.92rem; }
    .navbar-brand .brand-logo { height: 44px; }
    .navbar-brand .brand-text { font-size: 1.15rem; }
    .navbar .nav-link i { margin-right: 0.25rem !important; margin-left: 0.25rem !important; }
}

/* Admin dropdown section headers */
.admin-dropdown-menu { min-width: 240px; }
.admin-dropdown-menu .dropdown-header {
    color: var(--text-muted, #6c757d);
    letter-spacing: 0.04em;
    padding: 0.35rem 1rem 0.15rem;
    font-size: 0.7rem;
}
.admin-dropdown-menu hr.dropdown-divider { margin: 0.25rem 0; }

.dropdown-item {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* User menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ===== Buttons ===== */
.btn {
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary-color));
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-dark {
    background: linear-gradient(135deg, var(--dark-color), var(--dark-light));
    color: white;
}

.btn-dark:hover {
    background: linear-gradient(135deg, var(--dark-light), var(--dark-color));
}

/* ===== Cards ===== */
.card {
    background: var(--bg-white);
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    padding: 1.25rem 1.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-icon.primary {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.card-icon.secondary {
    background-color: var(--secondary-light);
    color: var(--secondary-color);
}

.card-icon.success {
    background-color: #F0FFF4;
    color: var(--success-color);
}

.card-icon.warning {
    background-color: #FFFAF0;
    color: var(--warning-color);
}

.card-icon.info {
    background-color: #EBF8FF;
    color: var(--info-color);
}

/* Feature cards */
.feature-card {
    text-align: center;
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-card h5 {
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--primary-light) 100%);
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-title span {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ===== Sitemap Links ===== */
.sitemap-links {
    margin: 0;
    padding: 0;
}

.sitemap-links li {
    margin-bottom: 0.75rem;
}

.sitemap-links li a {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
}

.sitemap-links li a:hover {
    color: var(--primary-color);
    transform: translateX(3px);
}

.sitemap-links li a i {
    width: 20px;
    text-align: center;
}

/* ===== Stats Cards ===== */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== Status Indicators ===== */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-operational {
    background-color: #F0FFF4;
    color: var(--success-color);
}

.status-degraded {
    background-color: #FFFAF0;
    color: var(--warning-color);
}

.status-outage {
    background-color: #FFF5F5;
    color: var(--danger-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-operational .status-dot {
    background-color: var(--success-color);
}

.status-degraded .status-dot {
    background-color: var(--warning-color);
}

.status-outage .status-dot {
    background-color: var(--danger-color);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== Forms ===== */
.form-control, .form-select {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(44, 189, 185, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

/* ===== Tables ===== */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: var(--bg-light);
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding: 1rem;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: var(--primary-light);
}

/* ===== Badges ===== */
.badge {
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-weight: 500;
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.badge-secondary {
    background-color: var(--secondary-light);
    color: var(--secondary-color);
}

/* Country badges */
.country-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    background-color: var(--bg-light);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--primary-color);
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-brand .brand-icon {
    background-color: var(--primary-color);
}

.footer-brand img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    color: var(--text-light);
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Social links */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: white;
}

/* ===== Share Buttons ===== */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-buttons .share-label {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.share-btn i {
    font-size: 1rem;
}

.share-btn-linkedin {
    background-color: #0077B5;
    color: white;
}

.share-btn-linkedin:hover {
    background-color: #005885;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 181, 0.3);
}

.share-btn-facebook {
    background-color: #1877F2;
    color: white;
}

.share-btn-facebook:hover {
    background-color: #0d5fc7;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.share-btn-whatsapp:hover {
    background-color: #1da851;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Icons only style */
.share-buttons-icons .share-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
}

.share-buttons-icons .share-btn span {
    display: none;
}

/* Outline/Ghost variant */
.share-buttons-outline .share-btn-linkedin {
    background-color: transparent;
    border-color: #0077B5;
    color: #0077B5;
}

.share-buttons-outline .share-btn-linkedin:hover {
    background-color: #0077B5;
    color: white;
}

.share-buttons-outline .share-btn-facebook {
    background-color: transparent;
    border-color: #1877F2;
    color: #1877F2;
}

.share-buttons-outline .share-btn-facebook:hover {
    background-color: #1877F2;
    color: white;
}

.share-buttons-outline .share-btn-whatsapp {
    background-color: transparent;
    border-color: #25D366;
    color: #25D366;
}

.share-buttons-outline .share-btn-whatsapp:hover {
    background-color: #25D366;
    color: white;
}

/* ===== Sidebar ===== */
.sidebar {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
}

.sidebar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

/* ===== Drag & Drop Zone ===== */
.drop-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    text-align: center;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: var(--primary-color);
    background-color: var(--primary-light);
}

.drop-zone i {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.drop-zone.drag-over i {
    color: var(--primary-color);
}

/* ===== Timeline ===== */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 2px solid var(--bg-white);
}

/* ===== Alerts ===== */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
}

.alert-primary {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.alert-success {
    background-color: #F0FFF4;
    color: var(--success-color);
}

.alert-warning {
    background-color: #FFFAF0;
    color: var(--warning-color);
}

.alert-danger {
    background-color: #FFF5F5;
    color: var(--danger-color);
}

/* ===== Utilities ===== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-muted { color: var(--text-muted) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.bg-secondary-light { background-color: var(--secondary-light) !important; }

.rounded-lg { border-radius: var(--border-radius-lg) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

/* Custom responsive utilities */
@media (min-width: 768px) {
    .w-md-auto { width: auto !important; }
    .flex-md-grow-0 { flex-grow: 0 !important; }
}

/* ===== Responsive - Tablets ===== */
@media (max-width: 991px) {
    /* Navbar adjustments for tablets */
    .navbar-brand .brand-logo {
        height: 50px;
    }

    .navbar-brand .brand-text {
        font-size: 1.1rem;
    }

    /* Hero section tablet adjustments */
    .hero-section {
        padding: 2.5rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    /* Sticky panels - reduce top offset on tablets */
    .sticky-top {
        top: 70px !important;
    }
}

/* ===== Responsive - Mobile ===== */
@media (max-width: 768px) {
    /* ===== Typography ===== */
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* ===== Cards ===== */
    .card-body {
        padding: 1rem;
    }

    .card-header {
        padding: 1rem;
    }

    /* Feature cards on mobile */
    .feature-card {
        padding: 1.25rem;
    }

    /* ===== Hero Section ===== */
    .hero-section {
        padding: 2rem 0;
        margin-bottom: 1rem;
    }

    /* ===== Buttons ===== */
    .btn {
        padding: 0.5rem 1rem;
    }

    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }

    /* Button groups - stack vertically on mobile */
    .d-flex.gap-3 {
        gap: 0.75rem !important;
    }

    /* ===== Navigation ===== */
    .navbar-brand .brand-logo {
        height: 45px;
    }

    .navbar-brand .brand-text {
        font-size: 1rem;
    }

    .navbar-brand .powered-by-nav {
        font-size: 0.5rem;
    }

    /* Mobile navbar collapse */
    .navbar-collapse {
        padding-top: 1rem;
    }

    .navbar-collapse .nav-link {
        padding: 0.75rem 1rem !important;
    }

    /* ===== Footer ===== */
    .footer {
        padding: 2rem 0 1rem;
        margin-top: 2rem;
    }

    .footer h5 {
        margin-bottom: 1rem;
        font-size: 1rem;
    }

    .footer-brand {
        font-size: 1.25rem;
    }

    /* ===== Forms ===== */
    .form-control, .form-select {
        padding: 0.625rem 0.875rem;
        font-size: 16px; /* Prevent iOS zoom on focus */
    }

    /* ===== Tables - Horizontal Scroll ===== */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }

    .table {
        font-size: 0.875rem;
    }

    .table thead th,
    .table tbody td {
        padding: 0.75rem 0.5rem;
        white-space: nowrap;
    }

    /* ===== Modals ===== */
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-xl {
        max-width: calc(100% - 1rem);
    }

    /* ===== Alerts ===== */
    .alert {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
    }

    /* ===== Drop Zone ===== */
    .drop-zone {
        padding: 1.5rem 1rem;
    }

    .drop-zone i {
        font-size: 1.5rem;
    }

    /* ===== Sidebar - Stack on mobile ===== */
    .sidebar {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    /* ===== Timeline ===== */
    .timeline {
        padding-left: 1.5rem;
    }

    /* ===== Share Buttons ===== */
    .share-buttons {
        gap: 0.5rem;
    }

    .share-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }

    /* ===== Tool Pages - Header Buttons ===== */
    .card-header .btn {
        padding: 0.375rem 0.625rem;
        font-size: 0.8rem;
    }

    .card-header .btn i {
        margin-right: 0.25rem !important;
        margin-left: 0.25rem !important;
    }

    /* ===== Page Headers ===== */
    .d-flex.justify-content-between.align-items-center {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    h1, h2 {
        font-size: 1.5rem;
    }

    h3, h4 {
        font-size: 1.25rem;
    }

    h5, h6 {
        font-size: 1rem;
    }

    /* ===== Badges ===== */
    .badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }

    /* ===== Sticky Panels - Disable on mobile ===== */
    .sticky-top {
        position: relative !important;
        top: 0 !important;
    }
}

/* ===== News Carousel Mobile ===== */
@media (max-width: 768px) {
    /* Show only first card on mobile in news carousel */
    #newsCarousel .carousel-item .row > div:nth-child(n+2) {
        display: none;
    }

    #newsCarousel .carousel-item .row > div:first-child {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    /* News card image adjustments */
    #newsCarousel .card-img-top {
        max-height: 150px;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    /* Show 2 cards on tablet */
    #newsCarousel .carousel-item .row > div:nth-child(n+3) {
        display: none;
    }

    #newsCarousel .carousel-item .row > div {
        width: 50%;
        max-width: 50%;
        flex: 0 0 50%;
    }
}

/* ===== Responsive - Small Mobile ===== */
@media (max-width: 480px) {
    /* ===== Extra Small Typography ===== */
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    /* ===== Navbar - Compact ===== */
    .navbar-brand .brand-logo {
        height: 40px;
    }

    .navbar-brand .brand-text {
        font-size: 0.9rem;
    }

    .navbar-brand .brand-text-container {
        display: none;
    }

    /* ===== Hero Buttons - Stack ===== */
    .hero-section .d-flex.gap-3 {
        flex-direction: column;
        width: 100%;
    }

    .hero-section .btn-lg {
        width: 100%;
    }

    /* ===== Cards - Tighter Padding ===== */
    .card-body {
        padding: 0.875rem;
    }

    .card-header {
        padding: 0.75rem;
    }

    /* ===== Tool Header Buttons - Stack ===== */
    .card-header > .d-flex,
    .card-header > div:last-child {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .card-header .btn {
        flex: 1 1 auto;
        min-width: 80px;
    }

    /* ===== Sitemap Links ===== */
    .sitemap-links li {
        margin-bottom: 0.5rem;
    }

    .sitemap-links li a {
        font-size: 0.85rem;
    }

    /* ===== Footer - Single Column ===== */
    .footer .col-6 {
        width: 100%;
    }

    /* ===== Dropdown Menus ===== */
    .dropdown-menu {
        font-size: 0.9rem;
    }

    .dropdown-item {
        padding: 0.5rem 0.75rem;
    }

    /* ===== Stats Cards ===== */
    .stat-card {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* ===== Operation Cards (Converter) ===== */
    .operation-card {
        padding: 0.5rem !important;
    }

    .operation-card .form-check-label {
        font-size: 0.75rem;
    }

    /* ===== Country Cards ===== */
    .card .fs-1 {
        font-size: 2rem !important;
    }
}

/* ===== Loading States ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, var(--border-color) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Code blocks ===== */
pre, code {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    font-family: 'Fira Code', 'Consolas', monospace;
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

code {
    padding: 0.125rem 0.375rem;
    font-size: 0.875rem;
}

/* ===== Pagination ===== */
.pagination .page-link {
    border: none;
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin: 0 0.125rem;
}

.pagination .page-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: white;
}

/* Tool Free Badge */
.tool-free-badge {
    font-size: 0.65em;
    font-weight: 600;
    padding: 0.2em 0.5em;
    vertical-align: middle;
    white-space: nowrap;
}
.tool-free-banner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.tool-free-banner .badge {
    font-size: 0.55em;
    padding: 0.3em 0.6em;
}
