/* PCB Flow - Static CSS */
/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary: #0047ab;
    --primary-foreground: #ffffff;
    --secondary: #10b981;
    --accent: #f59e0b;
    --background: #ffffff;
    --foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --border: #e2e8f0;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Spacing */
    --container-max-width: 1280px;
    --container-padding: 1rem;

    /* Transitions */
    --transition: all 0.3s ease;

    /* JLCPCB Style Colors */
    --jlc-blue: #0072fc;
    --jlc-bg: #f4f6f8;
    --jlc-border: #dee2e6;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background: var(--background);
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--foreground);
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.875rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

@media (min-width: 640px) {
    h1 {
        font-size: 3.75rem;
    }

    h2 {
        font-size: 3rem;
    }

    h3 {
        font-size: 2.25rem;
    }
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0.375rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.btn-primary:hover:not(:disabled) {
    background: #003d96;
}

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

.btn-secondary:hover:not(:disabled) {
    background: #059669;
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--foreground);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--muted);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    height: 3rem;
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}

/* Cards */
.card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-description {
    color: var(--muted-foreground);
    font-size: 0.875rem;
}

.card-content {
    padding: 1.5rem;
}

.card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    background: white;
    transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 71, 171, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-success {
    color: #10b981;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

/* Quote Page Specific Components */
.quote-container {
    background-color: var(--jlc-bg);
    padding: 2rem 0;
}

.product-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--jlc-border);
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.product-tab {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0.5rem 0.5rem 0 0;
    background: transparent;
    color: var(--slate-600);
    transition: var(--transition);
    white-space: nowrap;
}

.product-tab.active {
    background: var(--jlc-blue);
    color: white;
}

.quote-card {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.quote-card-header {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.option-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.option-label {
    width: 140px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-700);
    padding-top: 0.5rem;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    flex: 1;
}

.option-item {
    padding: 0.5rem 1rem;
    border: 1px solid var(--jlc-border);
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    position: relative;
    min-width: 60px;
    text-align: center;
}

.option-item:hover:not(.active) {
    border-color: var(--jlc-blue);
    color: var(--jlc-blue);
}

.option-item.active {
    border-color: var(--jlc-blue);
    color: var(--jlc-blue);
    background-color: rgba(0, 114, 252, 0.05);
}

.option-item.active::after {
    content: '✓';
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: var(--jlc-blue);
    color: white;
    font-size: 10px;
    width: 14px;
    height: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px 0 2px 0;
}

.color-option {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--jlc-border);
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.sidebar-sticky {
    position: sticky;
    top: 5rem;
}

.jlc-price-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.jlc-price-header {
    background: #f8f9fa;
    padding: 1.5rem;
    border-bottom: 1px solid var(--jlc-border);
}

.jlc-price-body {
    padding: 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.price-total {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 2px solid var(--jlc-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: #f59e0b;
}

.jlc-btn-primary {
    display: block;
    width: 100%;
    background: #f59e0b;
    color: white;
    padding: 1rem;
    border-radius: 0.25rem;
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.jlc-btn-primary:hover {
    background: #d97706;
}

/* Alert Messages */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-info {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.navbar-brand svg {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.navbar-brand .brand-text {
    color: var(--foreground);
}

.navbar-brand .brand-highlight {
    color: var(--primary);
}

.navbar-menu {
    display: none;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
    }
}

.navbar-menu a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted-foreground);
    transition: var(--transition);
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: block;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 100;
    padding: 2rem;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 99;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.mobile-menu nav {
    margin-top: 3rem;
}

.mobile-menu nav a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--muted-foreground);
    border-bottom: 1px solid var(--border);
}

.mobile-menu nav a:hover,
.mobile-menu nav a.active {
    color: var(--primary);
}

/* Footer */
.footer {
    width: 100%;
    border-top: 1px solid var(--border);
    background: var(--slate-50);
}

.footer-container {
    padding: 3rem 1.5rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    max-width: 20rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--muted-foreground);
}

.footer-social a:hover {
    color: var(--primary);
}

.footer-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: var(--muted-foreground);
    margin: 0;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background: white;
    padding: 5rem 0;
}

@media (min-width: 640px) {
    .hero {
        padding: 8rem 0;
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    z-index: 0;
    opacity: 0.3;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 7fr 5fr;
        gap: 2rem;
    }
}

.hero-text {
    max-width: 42rem;
}

/* Dashboard Layout */
.dashboard-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0;
}

@media (min-width: 992px) {
    .dashboard-container {
        grid-template-columns: 280px 1fr;
    }
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    height: fit-content;
}

.user-snippet {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.user-snippet-avatar {
    width: 3rem;
    height: 3rem;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--slate-600);
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
}

.sidebar-link svg {
    width: 1.25rem;
    height: 1.25rem;
}

.sidebar-link:hover {
    background: var(--slate-50);
    color: var(--primary);
}

.sidebar-link.active {
    background: rgba(0, 71, 171, 0.08);
    color: var(--primary);
    font-weight: 600;
}

/* Dashboard Content */
.dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.content-section {
    display: none;
    animation: fadeIn 0.3s ease;
}

.content-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stat Cards (Overview) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--slate-800);
}

.stat-info p {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin: 0;
}

/* Modern Forms */
.form-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.form-floating {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-floating label {
    position: absolute;
    top: -0.6rem;
    left: 0.75rem;
    background: white;
    padding: 0 0.25rem;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
}

/* Address & Order Cards */
.item-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
    position: relative;
    height: 100%;
}

.item-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.item-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 99rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-green {
    background: #dcfce7;
    color: #166534;
}

.badge-blue {
    background: #dbeafe;
    color: #1e40af;
}

.badge-yellow {
    background: #fef9c3;
    color: #854d0e;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(0, 71, 171, 0.05);
    color: var(--primary);
    border: 1px solid rgba(0, 71, 171, 0.1);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--slate-900);
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.75rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.75;
    color: var(--slate-600);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.hero-avatars {
    display: flex;
    margin-left: -0.25rem;
}

.hero-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: var(--slate-100);
    border: 2px solid white;
    margin-left: -0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--slate-400);
}

.hero-divider {
    width: 1px;
    height: 1.5rem;
    background: var(--slate-200);
}

.hero-stat-text {
    color: var(--slate-500);
}

.hero-stat-number {
    font-weight: 600;
    color: var(--slate-900);
}

.hero-card {
    position: relative;
    border-radius: 1rem;
    background: white;
    padding: 2.5rem;
    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 rgba(15, 23, 42, 0.05);
}

@media (min-width: 1024px) {
    .hero-card {
        margin-top: 2.5rem;
    }
}

.file-upload-area {
    background: var(--slate-50);
    border-radius: 0.5rem;
    padding: 1.5rem;
    border: 2px dashed var(--slate-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
}

.file-upload-icon {
    width: 4rem;
    height: 4rem;
    color: var(--slate-400);
    margin-bottom: 1rem;
}

.file-upload-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.file-upload-description {
    font-size: 0.875rem;
    color: var(--slate-500);
    margin-bottom: 1.5rem;
}

.price-display {
    margin-top: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.price-label {
    color: var(--slate-500);
}

.price-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
}

.progress-bar {
    width: 100%;
    height: 0.5rem;
    background: var(--slate-100);
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 9999px;
    width: 75%;
}

.progress-label {
    font-size: 0.625rem;
    color: var(--slate-400);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-dark {
    background: var(--slate-900);
    color: white;
}

.section-muted {
    background: var(--slate-50);
}

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

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 3rem;
    }
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-cols-md-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-md-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cols-lg-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-cols-lg-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--muted-foreground);
}

.text-white {
    color: white;
}

.bg-primary {
    background: var(--primary);
}

.bg-muted {
    background: var(--muted);
}

.bg-white {
    background: white;
}

.rounded {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.hidden {
    display: none;
}

@media (min-width: 640px) {
    .sm-block {
        display: block;
    }
}

@media (min-width: 768px) {
    .md-flex {
        display: flex;
    }

    .md-hidden {
        display: none;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--slate-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    animation: spin 0.6s linear infinite;
}

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

/* Icons (using SVG inline) */
.icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    vertical-align: middle;
}

.icon-sm {
    width: 1rem;
    height: 1rem;
}

.icon-lg {
    width: 1.5rem;
    height: 1.5rem;
}

.icon-xl {
    width: 2rem;
    height: 2rem;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    min-width: 14rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 50;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--foreground);
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--muted);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

.dropdown-label {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* User Avatar */
.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 71, 171, 0.1);
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    background: var(--slate-50);
}

/* Language Selector */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--foreground);
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    cursor: pointer;
    transition: var(--transition);
    min-width: 100px;
}

.lang-current:hover {
    background: var(--muted);
    border-color: var(--primary);
}

.lang-current .icon-sm {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.lang-flag svg {
    width: 1.25rem;
    height: auto;
    display: block;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-sm {
    width: 1rem !important;
    height: 1rem !important;
    flex-shrink: 0;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 160px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 100;
    overflow: hidden;
}

.lang-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--foreground);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.lang-option:last-child {
    border-bottom: none;
}

.lang-option:hover {
    background: var(--muted);
}

.lang-option.active {
    background: rgba(0, 71, 171, 0.05);
    color: var(--primary);
    font-weight: 600;
}

.lang-option.active::after {
    content: '✓';
    margin-left: auto;
    font-weight: bold;
}

.lang-flag {
    font-size: 1.25rem;
    line-height: 1;
}

/* Responsive Utilities */
@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Fix mobile menu button text color and alignment */
.mobile-menu nav a.btn-primary {
    color: white !important;
    border-bottom: none;
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-top: 1rem;
}