/* Material Design CSS with Blue Theme */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

:root {
    /* Blue Color Palette based on #2A1AA9 */
    --primary-color: #2A1AA9; /* Deep blue base */
    --primary-light: #5D4ED4; /* Light blue */
    --primary-lighter: rgb(78, 123, 212); /* Lighter blue */
    --primary-dark: #1A0E73; /* Dark blue */
    --secondary-color: #B8D4FF; /* Soft blue */
    --accent-color: #FF6B35; /* Complementary orange accent */
    
    /* Semantic colors */
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --warning-color: #FF9800;
    --info-color: #03A9F4;
    
    /* Surface colors */
    --surface-color: #e7e7e7;
    --background-color: #e9e8fe;
    --card-color: #FFFFFF;
    
    /* Text colors */
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-hint: #9E9E9E;
    
    /* Material elevations */
    --elevation-1: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --elevation-2: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
    --elevation-3: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    --elevation-4: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Material Design Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Material Typography */
.material-title {
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
    color: var(--text-primary);
    margin: 0 0 16px 0;
}

.material-subtitle {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
}

.material-body {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    color: var(--text-primary);
}

.material-caption {
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: var(--text-secondary);
}

/* Material Design Navbar */
.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    box-shadow: var(--elevation-2);
    border: none;
    min-height: 64px;
    transition: box-shadow var(--transition-medium);
}

.navbar-brand {
    font-weight: 500;
    font-size: 20px;
    color: white !important;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast);
}

/* .navbar-brand:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
} */

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.87) !important;
    font-weight: 500;
    padding: 8px 16px !important;
    margin: 0 4px;
    border-radius: 4px;
    transition: all var(--transition-fast);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.1);
}

/* Material Design Cards */
.card, .provider-card {
    background-color: var(--card-color);
    border: none;
    border-radius: 8px;
    box-shadow: var(--elevation-1);
    transition: box-shadow var(--transition-medium), transform var(--transition-medium);
    margin-bottom: 16px;
    overflow: hidden;
}

.card:hover, .provider-card:hover {
    box-shadow: var(--elevation-3);
    transform: translateY(-2px);
}

/* Form cards should not have hover effects */
.card.form-card,
.card.form-card:hover {
    transform: none;
    box-shadow: var(--elevation-1);
}

.card-header {
    background-color: var(--surface-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    font-weight: 500;
    color: var(--text-primary);
    padding: 16px 24px;
}

.card-body {
    padding: 20px 24px;
}

.card-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.provider-logo {
    height: 64px;
    width: 64px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--elevation-1);
    border: 2px solid var(--surface-color);
}

/* Material Design Form Elements */
.form-control, .form-select {
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    padding: 12px 16px;
    font-size: 16px;
    line-height: 1.5;
    background-color: var(--surface-color);
    color: var(--text-primary);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(42, 26, 169, 0.2);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

/* Floating label style */
.form-floating {
    position: relative;
}

.form-floating .form-control {
    padding: 16px 12px 8px 12px;
}

.form-floating label {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    padding: 16px 12px;
    pointer-events: none;
    border: 1px solid transparent;
    transform-origin: 0 0;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    color: var(--text-hint);
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    opacity: 0.65;
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

/* Material Design Buttons */
.btn {
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 36px;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(124, 77, 255, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    /* box-shadow: var(--elevation-1); */
}

/* .btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--elevation-2);
} */

/* .btn-primary:active {
    background-color: var(--primary-dark);
    box-shadow: var(--elevation-3);
} */

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

.btn-secondary:hover {
    background-color: rgba(42, 26, 169, 0.08);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
    box-shadow: var(--elevation-1);
}

.btn-success:hover {
    background-color: #45a049;
    box-shadow: var(--elevation-2);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    box-shadow: var(--elevation-1);
}

.btn-danger:hover {
    background-color: #da190b;
    box-shadow: var(--elevation-2);
}

/* Floating Action Button */
.btn-fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 0;
    background-color: var(--accent-color);
    color: white;
    box-shadow: var(--elevation-2);
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.btn-fab:hover {
    box-shadow: var(--elevation-3);
}

/* Material Design Dashboard */
.stats-card {
    background: linear-gradient(135deg, var(--card-color) 0%, #f8f9ff 100%);
    border: none;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--elevation-1);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-light));
}

.stats-card:hover {
    box-shadow: var(--elevation-2);
    transform: translateY(-2px);
}

.stats-card h3 {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 24px;
    margin-bottom: 8px;
}

.stats-card .stats-label {
    color: var(--text-secondary);
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-card .stats-icon {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    color: var(--primary-light);
    opacity: 0.7;
}

/* Material Design Search and Results */
.beneficiary-info {
    background-color: var(--card-color);
    border: none;
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--elevation-1);
    margin-bottom: 16px;
}

.search-container {
    background-color: var(--card-color);
    border-radius: 8px;
    padding: 24px;
    box-shadow: var(--elevation-1);
    margin-bottom: 24px;
}

/* Material Design Alerts */
.alert {
    border: none;
    border-radius: 8px;
    padding: 16px;
    box-shadow: var(--elevation-1);
    margin-bottom: 16px;
    position: relative;
}

.alert-success {
    background-color: #e8f5e8;
    color: #2e7d32;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    background-color: #ffeaea;
    color: #c62828;
    border-left: 4px solid var(--danger-color);
}

.alert-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid var(--info-color);
}

.alert-warning {
    background-color: #fff8e1;
    color: #ef6c00;
    border-left: 4px solid var(--warning-color);
}

/* Material Design Responsive Design */
@media (max-width: 576px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .navbar-brand {
        font-size: 18px;
    }
    
    .navbar-brand .material-icons {
        font-size: 20px !important;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .hero-section {
        padding: 48px 0;
        margin-bottom: 24px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .provider-logo {
        height: 56px;
        width: 56px;
    }
    
    .stats-card {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .material-title {
        font-size: 20px;
    }
    
    /* Stack buttons vertically on mobile */
    .hero-section .btn {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .hero-section .row.g-3 {
        --bs-gutter-x: 0;
    }
}

/* Tablet optimizations */
@media (min-width: 577px) and (max-width: 768px) {
    .provider-card {
        margin-bottom: 16px;
    }
    
    .hero-section h1 {
        font-size: 40px;
    }
}

/* Desktop optimizations */
@media (min-width: 992px) {
    .provider-logo {
        height: 72px;
        width: 72px;
    }
    
    .stats-card {
        padding: 32px;
    }
    
    .hero-section {
        padding: 80px 0;
    }
    
    .hero-section h1 {
        font-size: 56px;
    }
}

/* Material Design Utility Classes */
.material-ripple {
    position: relative;
    overflow: hidden;
}

.material-ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: 0;
}

.material-ripple:hover::before {
    width: 300px;
    height: 300px;
}

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

.text-secondary {
    color: var(--text-secondary) !important;
}

.bg-light-blue {
    background-color: var(--secondary-color) !important;
}

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

.elevation-1 {
    box-shadow: var(--elevation-1) !important;
}

.elevation-2 {
    box-shadow: var(--elevation-2) !important;
}

.elevation-3 {
    box-shadow: var(--elevation-3) !important;
}

/* Material Design Loading States */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(42, 26, 169, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

/* Material Design Additional Animations and Interactions */
.card, .btn, .form-control, .form-select, .alert {
    will-change: transform, box-shadow;
}

/* Enhanced Material Buttons with Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
    opacity: 0;
}

.btn:active::before {
    width: 300px;
    height: 300px;
    opacity: 1;
    transition: 0ms;
}

/* Material Design Floating Labels Enhancement */
.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    color: var(--primary-color);
    font-weight: 500;
}

/* Material Design Navigation Enhancement */
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 500;
}

/* Material Design Card Hover States */
.provider-card {
    cursor: pointer;
}

.provider-card:hover .provider-logo {
    transform: scale(1.1);
    transition: transform var(--transition-medium);
}

/* Material Design Progress Indicators */
.progress {
    height: 4px;
    background-color: rgba(42, 26, 169, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

/* Enhanced gradients for better visual appeal */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 50%, var(--primary-dark) 100%) !important;
}

.bg-primary {
    background: var(--primary-color) 0% !important;
}

.bg-light {
    background: var(--primary-lighter) 0% !important;
}

/* Material Design Snackbar/Toast */
.toast {
    background-color: var(--text-primary);
    color: white;
    border: none;
    border-radius: 4px;
    box-shadow: var(--elevation-2);
}

.toast-header {
    background-color: transparent;
    border: none;
    color: white;
}

/* Material Design List Items */
.list-group-item {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    transition: background-color var(--transition-fast);
}

.list-group-item:hover {
    background-color: rgba(42, 26, 169, 0.04);
}

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

/* Material Design Badges */
.badge {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Material Design Footer */
/* footer {
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

footer a:hover {
    transform: translateY(-2px);
    transition: transform var(--transition-fast);
} */

footer {
    background-color: var(--primary-color) !important;
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

footer a {
    color: rgba(255, 255, 255, 0.87);
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Material Design Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Material Design Focus Rings */
.form-control:focus,
.form-select:focus,
.btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(42, 26, 169, 0.2);
}

/* Material Design Text Selection */
::selection {
    background-color: var(--primary-light);
    color: white;
}

::-moz-selection {
    background-color: var(--primary-light);
    color: white;
}

/* Material Design Loading States */
.btn[disabled], .btn:disabled {
    background-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.26);
    box-shadow: none;
    cursor: not-allowed;
}

.form-control:disabled,
.form-select:disabled {
    background-color: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.38);
}

/* Material Design Data Tables */
.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(42, 26, 169, 0.02);
}

/* Material Design Empty States */
.empty-state {
    text-align: center;
    padding: 64px 32px;
    color: var(--text-secondary);
}

.empty-state .material-icons {
    font-size: 72px;
    color: var(--text-hint);
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 14px;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Material Design Ripple Effect */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Enhanced Form States */
.form-floating input.filled ~ label {
    color: var(--primary-color);
}

.was-validated .form-control:valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.was-validated .form-control:invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 2px rgba(244, 67, 54, 0.2);
}

/* Material Design Checkboxes */
.form-check-input {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(42, 26, 169, 0.3);
    border-radius: 4px;
    transition: all var(--transition-fast);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(42, 26, 169, 0.2);
}

.form-check-label {
    margin-left: 8px;
    color: var(--text-primary);
}

/* Material Design Color Variants */
.bg-light-blue {
    background-color: rgba(184, 212, 255, 0.15) !important;
}

.text-blue {
    color: var(--primary-light) !important;
}

/* Material Design Interactive Elements */
.material-interactive {
    transition: all var(--transition-medium);
    cursor: pointer;
}

.material-interactive:hover {
    transform: translateY(-2px);
    box-shadow: var(--elevation-2);
}

/* Material Design Feature Icons */
.feature-icon {
    transition: all var(--transition-medium);
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Enhanced Elevation Classes */
.elevation-0 { box-shadow: none !important; }
.elevation-1 { box-shadow: var(--elevation-1) !important; }
.elevation-2 { box-shadow: var(--elevation-2) !important; }
.elevation-3 { box-shadow: var(--elevation-3) !important; }
.elevation-4 { box-shadow: var(--elevation-4) !important; }

/* Material Design Section Spacing */
section {
    position: relative;
}

section + section {
    margin-top: 0;
}

/* Material Design Gradient Text */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Enhanced Material Design Skeleton Loading */
@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Additional Blue Theme Enhancements */
.btn-primary:hover {
    background: var(--primary-dark);
    /* box-shadow: var(--elevation-3);
    transform: translateY(-1px); */
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #0D0952 100%) !important;
}

/* Improved card hover states */
.card:hover {
    box-shadow: 0 8px 25px rgba(42, 26, 169, 0.15);
}

/* Enhanced focus states for accessibility */
.btn:focus-visible,
.form-control:focus-visible {
    box-shadow: 0 0 0 3px rgba(42, 26, 169, 0.25);
}

/* Scrollbar styling for blue theme */
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light), var(--primary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
}

/* Material Design Table Styles */
.table {
    background-color: var(--card-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--elevation-1);
}

.table thead th {
    background-color: var(--primary-light);
    color: white;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
    padding: 16px;
    border: none;
}

.table tbody tr {
    transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
    background-color: rgba(42, 26, 169, 0.04);
}

.table tbody td {
    padding: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .table-responsive {
        border: none;
        box-shadow: none;
    }
    
    .table-responsive table {
        font-size: 14px;
    }
    
    .table-responsive th,
    .table-responsive td {
        padding: 12px 8px;
    }
}

/* Form improvements - keeping existing but updating with material theme */
.form-label {
    font-weight: 500;
    color: var(--text-primary);
}

.form-control, .form-select {
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(42, 26, 169, 0.2);
}

@media (max-width: 576px) {
    .hero-section {
        padding: 48px 0;
        margin-bottom: 24px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
}

/* Material Design Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, #0D0952 100%);
    color: white;
    padding: 64px 0;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

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

.hero-section h1 {
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.5;
}

/* Container improvements */
.container {
    padding-left: 24px;
    padding-right: 24px;
}

.main-content {
    padding-top: 24px;
    padding-bottom: 24px;
}

@media (max-width: 576px) {
    .hero-section {
        padding: 1.5rem 0;
        margin-bottom: 1.5rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section p {
        font-size: 0.875rem;
    }
}

/* Material Design Toast Styles */
.material-toast {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: var(--elevation-3);
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 0.75rem;
    min-width: 320px;
    max-width: 400px;
}

.material-toast .toast-header {
    border-radius: 8px 8px 0 0;
    padding: 0.75rem 1rem;
    border-bottom: none;
    display: flex;
    align-items: center;
}

.material-toast .toast-header .btn-close {
    margin-left: 0.5rem;
    opacity: 0.8;
    filter: brightness(0) invert(1);
}

.material-toast .toast-header .btn-close:hover {
    opacity: 1;
}

.material-toast .toast-header.bg-success {
    background: linear-gradient(135deg, var(--success-color), #66BB6A) !important;
}

.material-toast .toast-header.bg-error,
.material-toast .toast-header.bg-danger {
    background: linear-gradient(135deg, var(--danger-color), #EF5350) !important;
}

.material-toast .toast-header.bg-warning {
    background: linear-gradient(135deg, var(--warning-color), #FFB74D) !important;
}

.material-toast .toast-header.bg-info {
    background: linear-gradient(135deg, var(--info-color), #29B6F6) !important;
}

.material-toast .toast-body {
    padding: 1rem;
    color: var(--text-primary);
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Toast animations */
.material-toast.showing {
    animation: toast-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.material-toast.hiding {
    animation: toast-slide-out 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes toast-slide-in {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toast-slide-out {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Toast responsive adjustments */
@media (max-width: 768px) {
    .toast-container {
        left: 1rem !important;
        right: 1rem !important;
        top: 1rem !important;
    }
    
    .material-toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* Simple Mobile Menu Enhancement - Don't override Bootstrap */
@media (max-width: 991px) {
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0.125rem 0;
        border-radius: 0.25rem;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Provider detail page styles */
.provider-detail-header {
    border: none;
    box-shadow: var(--elevation-2);
    background: linear-gradient(135deg, var(--surface-color), var(--background-color));
}

.provider-detail-header .card-body {
    padding: 2rem;
}

.provider-logo-large {
    height: 120px;
    width: 120px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--elevation-2);
    border: 3px solid var(--surface-color);
}

.benefit-card {
    border: none;
    box-shadow: var(--elevation-1);
    transition: all var(--transition-medium);
    border-left: 4px solid var(--primary-color);
}

.benefit-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--elevation-2);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 1.2rem;
    margin: 0 auto 1rem auto;
    box-shadow: var(--elevation-1);
}

/* Enhanced provider cards */
.provider-card {
    transition: all var(--transition-medium);
    border: none;
    box-shadow: var(--elevation-1);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem; /* Extra margin for better spacing */
}

.provider-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--elevation-3);
}

.provider-card:hover .provider-logo {
    transform: scale(1.05);
}

/* Provider name styling */
.provider-name {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
    margin-bottom: 0.5rem !important;
    max-height: 2.6em; /* Approximately 2 lines */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Social media button colors */
.btn-outline-success:hover {
    background-color: #25d366;
    border-color: #25d366;
}

.btn-outline-danger:hover {
    background-color: #e4405f;
    border-color: #e4405f;
}

/* Mobile responsiveness for provider detail */
@media (max-width: 768px) {
    .provider-logo-large {
        height: 100px;
        width: 100px;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .provider-card {
        margin-bottom: 1rem;
    }
    
    .provider-detail-header .card-body {
        padding: 1rem;
    }
    
    .provider-detail-header h1 {
        font-size: 1.5rem;
    }
    
    /* Stack social buttons vertically on small screens */
    .provider-detail-header .btn {
        margin-bottom: 0.5rem;
        display: block;
        width: 100%;
    }
    
    @media (min-width: 576px) {
        .provider-detail-header .btn {
            display: inline-block;
            width: auto;
            margin-bottom: 0;
        }
    }
    
    /* Adjust provider name font size on mobile */
    .provider-name {
        font-size: 1rem;
        line-height: 1.2;
    }
}
