@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #0B0F19;
    --bg-card: #151E2E;
    --bg-card-hover: #1E293B;
    --accent: #F59E0B;
    --accent-hover: #D97706;
    --accent-glow: rgba(245, 158, 11, 0.12);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(245, 158, 11, 0.25);
    --success: #10B981;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.45);
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-main) !important;
    color: var(--text-primary) !important;
    font-family: var(--font-sans) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    max-width: 1240px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Navbar Premium Styling */
.navbar {
    background-color: rgba(21, 30, 46, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.4rem 0 !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #FFF 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary) !important;
    transition: all 0.15s ease !important;
    position: relative;
    padding: 0.3rem 0.8rem !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: all 0.15s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--text-primary) !important;
}

.nav-link:hover::after {
    width: 50%;
}

.nav-link.active {
    color: var(--accent) !important;
}

.nav-link.active::after {
    width: 50%;
}

/* Premium Card */
.premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: all 0.25s ease;
    height: 100%;
}

.premium-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* Country Selector */
.country-search-container {
    margin-bottom: 0.6rem;
}

.country-search-input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    padding: 0.45rem 0.75rem;
    font-size: 0.85rem;
    width: 100%;
    transition: all 0.2s ease;
}

.country-search-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent);
    outline: none;
}

.countribox {
    height: 350px !important;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.15);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 6px;
}

.country-chip {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    user-select: none;
    transition: all 0.15s ease;
}

.country-chip:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.country-chip.active {
    background: rgba(245, 158, 11, 0.18) !important;
    border-color: var(--accent) !important;
    color: #FFF !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.country-chip input {
    display: none;
}

/* Form Styling */
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-select {
    background-color: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    color: var(--text-primary) !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.85rem !important;
    font-weight: 500;
    transition: all 0.2s ease !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2394A3B8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
}

.form-select:focus {
    border-color: var(--accent) !important;
    outline: none;
}

.form-select option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.btn-premium {
    background: linear-gradient(135deg, var(--accent) 0%, #F59E0B 100%);
    color: #0B0F19 !important;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.2rem;
    font-size: 0.9rem;
    box-shadow: 0 3px 8px rgba(245, 158, 11, 0.15);
    transition: all 0.2s ease;
    width: 100%;
}

.btn-premium:hover {
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-outline-premium {
    background: transparent;
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 0.35rem 0.95rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-premium:hover {
    background: var(--accent);
    color: #0B0F19 !important;
}

/* Results Display */
.country-results-column {
    margin-bottom: 0.75rem;
    animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.results-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-sm);
}

.results-header {
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-header h3 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
}

.results-header h3 a {
    color: var(--accent) !important;
    text-decoration: none;
}

.results-header h3 a:hover {
    color: #FFF !important;
}

.names-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 130px;
    overflow-y: auto;
}

.name-item {
    padding: 0.45rem 0.85rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.15s ease;
}

.name-item:last-child {
    border-bottom: none;
}

.name-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 1.05rem;
}

.name-item .gender-badge {
    font-size: 0.75rem;
    opacity: 0.75;
}

.name-item .copy-icon {
    opacity: 0;
    font-size: 0.8rem;
    color: var(--accent);
    transition: all 0.15s ease;
}

.name-item:hover .copy-icon {
    opacity: 0.85;
}

.name-item.copied {
    background: rgba(16, 185, 129, 0.05) !important;
    color: var(--success) !important;
}

/* Shimmer Skeletons */
.shimmer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    height: 170px;
    position: relative;
    overflow: hidden;
}

.shimmer-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.02) 20%,
        rgba(255, 255, 255, 0.05) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

.shimmer-line {
    height: 12px;
    background: rgba(255, 255, 255, 0.03);
    margin: 1rem;
    border-radius: 3px;
}

.shimmer-line.header {
    height: 16px;
    width: 50%;
}

.shimmer-line.item {
    height: 12px;
    width: 75%;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer Styling */
footer {
    background-color: var(--bg-card) !important;
    border-top: 1px solid var(--border-color);
    padding: 0.8rem 0;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

footer strong {
    color: var(--accent);
}

/* Detail page hero section */
.detail-hero {
    background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 60%);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 0;
    text-align: center;
}

.detail-hero h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.alert-premium {
    background: rgba(239, 68, 68, 0.08) !important;
    border: 1px solid rgba(239, 68, 68, 0.15) !important;
    color: #F87171 !important;
    border-radius: 8px !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
}

.btn-link-premium {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    font-size: 0.75rem;
    transition: color 0.15s ease;
    text-decoration: none;
}

.btn-link-premium:hover {
    color: #FFF;
}
