/* RemitWise Custom Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* Custom Font Variables */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Custom Colors */
    --primary-blue: #2563eb;
    --primary-blue-dark: #1d4ed8;
    --primary-blue-light: #3b82f6;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
}

/* Base Typography */
body {
    font-family: var(--font-primary);
    font-weight: var(--font-normal);
    line-height: 1.6;
}

/* Main Titles (H1) */
.title,
h1.title {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    font-size: 2.25rem; /* 36px */
    line-height: 1.2;
    color: #111827;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

/* Subtitle/Description */
.sub-title,
.subtitle {
    font-family: var(--font-primary);
    font-weight: var(--font-medium);
    font-size: 1.125rem; /* 18px */
    line-height: 1.5;
    color: #6b7280;
    margin-bottom: 1rem;
}

/* Section Titles (H2, H3) */
h2.sub-title,
h3.sub-title {
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    font-size: 1.5rem; /* 24px */
    line-height: 1.3;
    color: #111827;
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
}

/* Responsive Typography */
@media (min-width: 640px) {
    .title,
    h1.title {
        font-size: 2.5rem; /* 40px */
    }
    
    .sub-title,
    .subtitle {
        font-size: 1.25rem; /* 20px */
    }
}

@media (min-width: 768px) {
    .title,
    h1.title {
        font-size: 3rem; /* 48px */
    }
}

@media (min-width: 1024px) {
    .title,
    h1.title {
        font-size: 3.5rem; /* 56px */
    }
}

/* Hero Section Titles (Landing Page) */
.hero-title {
    font-family: var(--font-heading);
    font-weight: var(--font-extrabold);
    font-size: 2.5rem; /* 40px */
    line-height: 1.1;
    color: #111827;
    letter-spacing: -0.03em;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3.5rem; /* 56px */
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem; /* 64px */
    }
}

/* Card Titles */
.card-title {
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    font-size: 1.25rem; /* 20px */
    line-height: 1.3;
    color: #111827;
    margin-bottom: 0.5rem;
}

/* ===========================================
   NAVIGATION BAR STYLES - CLEAN & MODERN
   =========================================== */

/* Navigation Container */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Navigation Brand */
.nav-brand {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    font-size: 1.5rem; /* 24px */
    color: #111827;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-brand:hover {
    color: var(--primary-blue);
}

/* Logo Container */
.nav-logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.nav-logo-container:hover {
    transform: scale(1.02);
}

.nav-logo {
    width: 2rem; /* 32px */
    height: 2rem; /* 32px */
    background: var(--primary-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    transition: all 0.2s ease;
}

.nav-logo:hover {
    background: var(--primary-blue-dark);
    transform: translateY(-1px);
}

.nav-logo-text {
    color: white;
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    font-size: 0.875rem; /* 14px */
    letter-spacing: -0.01em;
}

/* Navigation Links - Bold & Modern Style */
.nav-link {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    font-size: 0.95rem; /* 15px */
    color: #374151;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.nav-link:hover {
    color: var(--primary-blue);
    background-color: #f8fafc;
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--primary-blue);
    background-color: #eff6ff;
    font-weight: var(--font-bold);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

.nav-link i {
    font-size: 1rem;
    margin-right: 0.5rem;
    width: 1.25rem;
    text-align: center;
}

/* User Dropdown - Simplified */
.user-dropdown-trigger {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: transparent;
    border: 1px solid transparent;
    font-family: var(--font-primary);
    font-weight: var(--font-medium);
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.user-dropdown-trigger:hover {
    background-color: #f3f4f6;
    border-color: #d1d5db;
}

.user-avatar {
    width: 1.75rem; /* 28px */
    height: 1.75rem; /* 28px */
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
    font-size: 0.75rem;
    font-weight: var(--font-semibold);
    color: white;
    transition: all 0.2s ease;
}

.user-dropdown-trigger:hover .user-avatar {
    background: var(--primary-blue-dark);
}

.user-name {
    margin-right: 0.5rem;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-chevron {
    transition: transform 0.2s ease;
    color: #9ca3af;
    font-size: 0.75rem;
}

.user-dropdown-trigger:hover .dropdown-chevron {
    color: #6b7280;
}

/* Dropdown Menu - Clean */
.dropdown-menu {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    min-width: 180px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    font-family: var(--font-primary);
    font-weight: var(--font-medium);
    font-size: 0.875rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

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

.dropdown-item:hover {
    background-color: #f9fafb;
    color: var(--primary-blue);
}

.dropdown-item i {
    margin-right: 0.75rem;
    width: 1rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Mobile Menu */
.mobile-menu {
    background: white;
    border-top: 1px solid #e5e7eb;
}

/* Mobile Navigation Links - Bold Style */
.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    font-size: 0.95rem;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    margin: 0.25rem;
    transition: all 0.2s ease;
    letter-spacing: -0.01em;
}

.mobile-nav-link:hover {
    background-color: #f8fafc;
    color: var(--primary-blue);
    transform: translateX(4px);
}

.mobile-nav-link.active {
    background-color: #eff6ff;
    color: var(--primary-blue);
    font-weight: var(--font-bold);
    border-left: 3px solid var(--primary-blue);
}

.mobile-nav-link i {
    margin-right: 0.75rem;
    width: 1.25rem;
    text-align: center;
    font-size: 0.95rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #6b7280;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn:hover {
    background-color: #f3f4f6;
    color: var(--primary-blue);
}

/* Public Navigation */
.public-nav .nav-link {
    font-weight: var(--font-medium);
    padding: 0.5rem 1rem;
}

.public-nav-cta {
    background: var(--primary-blue);
    color: white;
    font-family: var(--font-primary);
    font-weight: var(--font-semibold);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.public-nav-cta:hover {
    background: var(--primary-blue-dark);
}

.public-nav-cta i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.public-nav-signin {
    font-family: var(--font-primary);
    font-weight: var(--font-medium);
    color: #6b7280;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.public-nav-signin:hover {
    color: var(--primary-blue);
    background-color: #f3f4f6;
}

.public-nav-signin i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
    
    .nav-link i {
        margin-right: 0.4rem;
    }
}

@media (max-width: 768px) {
    .nav-brand {
        font-size: 1.25rem; /* 20px */
    }
    
    .nav-logo {
        width: 1.75rem; /* 28px */
        height: 1.75rem; /* 28px */
        margin-right: 0.5rem;
    }
    
    .nav-logo-text {
        font-size: 0.75rem; /* 12px */
    }
    
    .user-name {
        display: none;
    }
    
    .user-avatar {
        width: 1.5rem; /* 24px */
        height: 1.5rem; /* 24px */
        font-size: 0.7rem;
    }
}

/* Remove any unwanted default spacing */
.navbar * {
    box-sizing: border-box;
}

/* Ensure proper spacing in navigation container */
.navbar .mx-auto {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem; /* 64px */
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .navbar .mx-auto {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .navbar .mx-auto {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Button Typography */
.btn {
    font-family: var(--font-primary);
    font-weight: var(--font-medium);
    letter-spacing: 0.025em;
}

/* Form Labels */
label {
    font-family: var(--font-primary);
    font-weight: var(--font-medium);
    color: #374151;
}

/* Breadcrumb Styling */
.breadcrumb {
    font-family: var(--font-primary);
    font-weight: var(--font-normal);
    font-size: 0.875rem; /* 14px */
    color: #6b7280;
}

.breadcrumb a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--primary-blue-dark);
}

/* Stats and Numbers */
.stat-number {
    font-family: var(--font-heading);
    font-weight: var(--font-bold);
    font-size: 2rem; /* 32px */
    line-height: 1;
    color: #111827;
}

.stat-label {
    font-family: var(--font-primary);
    font-weight: var(--font-medium);
    font-size: 0.875rem; /* 14px */
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Error and Success Messages */
.message {
    font-family: var(--font-primary);
    font-weight: var(--font-medium);
    font-size: 0.875rem; /* 14px */
    line-height: 1.4;
}

/* Table Headers */
.table-header {
    font-family: var(--font-primary);
    font-weight: var(--font-semibold);
    font-size: 0.75rem; /* 12px */
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Fine Print / Small Text */
.fine-print {
    font-family: var(--font-primary);
    font-weight: var(--font-normal);
    font-size: 0.75rem; /* 12px */
    color: #9ca3af;
    line-height: 1.4;
}

/* Utility Classes for Font Weights */
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: var(--font-extrabold); }
.font-black { font-weight: var(--font-black); }

/* Utility Classes for Font Families */
.font-primary { font-family: var(--font-primary); }
.font-heading { font-family: var(--font-heading); }

/* Enhanced Focus States */
.focus-custom:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Custom Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Print Styles */
@media print {
    .title,
    h1.title,
    .hero-title {
        font-size: 24px !important;
        color: #000 !important;
    }
    
    .sub-title,
    .subtitle {
        font-size: 16px !important;
        color: #333 !important;
    }
}

/* Dark Mode Support (if needed in future) */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
    }
    
    .dark .title,
    .dark h1.title {
        color: var(--text-primary);
    }
    
    .dark .sub-title,
    .dark .subtitle {
        color: var(--text-secondary);
    }
}