/* Modern UI Styles for FoencApp */

/* Import Font Awesome */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

/* Landing page styles - Transparent Modal Overlay */
.landing-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-modal {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    min-width: 400px;
    max-width: 500px;
    animation: modalFadeIn 0.5s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.landing-spinner-top {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
}

.landing-spinner-top .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    opacity: 0.8;
    border-width: 2px;
}

.landing-content {
    text-align: center;
    color: var(--primary-color);
}

.landing-logo i {
    animation: bounce 2s infinite;
    opacity: 0.8;
    color: var(--primary-color);
}

.landing-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.landing-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--dark-color);
    font-weight: 500;
}

.landing-progress .progress {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    height: 6px;
}

.landing-progress .progress-bar {
    background: var(--primary-color);
    border-radius: 10px;
    opacity: 0.8;
}

.landing-steps {
    margin-top: 2rem;
}

.landing-steps .step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: var(--dark-color);
    font-weight: 500;
}

.landing-steps .step.active {
    opacity: 0.8;
    color: var(--primary-color);
}

.landing-steps .step.completed {
    opacity: 0.8;
    color: var(--success-color);
}

.landing-steps .step i {
    width: 20px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Custom Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* Global Styles */
* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8f9fa;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Layout Styles */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.layout-container {
    display: flex;
    flex: 1;
    margin-top: 56px; /* Height of navbar */
}

.main-content {
    flex: 1;
    padding-top: 1rem;
    background-color: #f8f9fa;
    margin-left: 250px; /* Width of expanded sidebar */
    transition: margin-left 0.3s ease;
    min-height: calc(100vh - 56px);
    width: calc(100% - 250px);
}

.main-content.sidebar-collapsed {
    margin-left: 90px;
    width: calc(100% - 90px);
}

.content {
    padding: 2rem;
    max-width: 100%;
    overflow-x: auto;
    margin: 0;
    box-sizing: border-box;
    padding-top: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .layout-container {
        margin-top: 0;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding-top: 0.5rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    /* Ensure proper spacing for mobile sidebar toggle */
    .page {
        padding-top: 0;
    }
    
    /* Adjust main content for mobile */
    .main-content {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 576px) {
    .content {
        padding: 0.5rem;
    }
}

/* Navigation Styles */
.navbar {
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    padding: 0.5rem 1rem;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
}

.dropdown-item {
    padding: 0.75rem 1rem;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-color);
}

/* Mobile Sidebar Toggle */
.sidebar-mobile-toggle {
    color: white;
    border: none;
    background: transparent;
    padding: 0.5rem;
    margin-right: 0.5rem;
}

.sidebar-mobile-toggle:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

@media (min-width: 992px) {
    .sidebar-mobile-toggle {
        display: none !important;
    }
}

/* Card Styles */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    background-color: transparent;
}

/* Dashboard Styles */
.dashboard .card {
    margin-bottom: 1.5rem;
}

.border-left-primary {
    border-left: 0.25rem solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--success-color) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--info-color) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning-color) !important;
}

.text-xs {
    font-size: 0.75rem;
}

.font-weight-bold {
    font-weight: 700 !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.text-gray-300 {
    color: #dddfeb !important;
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-marker {
    position: absolute;
    left: -2.5rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.timeline-content {
    background: #fff;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.timeline-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-text {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* Alert Styles */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.25rem;
}

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.375rem 0.75rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-collapse {
        background-color: rgba(0, 123, 255, 0.95);
        border-radius: var(--border-radius);
        margin-top: 0.5rem;
        padding: 1rem;
    }
    
    .dropdown-menu {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -2rem;
    }
}

@media (max-width: 576px) {
    .content {
        padding: 0.5rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-custom {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.border-radius-custom {
    border-radius: 1rem;
}

/* Bootstrap Overrides for Layout */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    padding-left: 0;
    padding-right: 0;
}

/* Mobile-First Responsive */
@media (max-width: 576px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

/* Sidebar Navigation - New Design */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    z-index: 1050;
    transition: all 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    will-change: transform;
}

.sidebar.collapsed {
    width: 90px;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.sidebar-brand i {
    font-size: 1.5rem;
    color: #ffd700;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.sidebar-content {
    padding: 1rem 0;
}

.sidebar-section {
    margin-bottom: 1.5rem;
}

.sidebar-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    margin: 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-height: 48px; /* Touch-friendly minimum height */
    cursor: pointer;
}

.sidebar-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.1);
    transition: width 0.3s ease;
}

.sidebar-link:hover {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link:hover::before {
    width: 100%;
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: #ffd700;
}

.sidebar-link i {
    width: 20px;
    margin-right: 0.75rem;
    text-align: center;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.sidebar-link span {
    position: relative;
    z-index: 1;
}

.sidebar-link.text-danger {
    color: #ff6b6b !important;
}

.sidebar-link.text-danger:hover {
    color: #ff5252 !important;
}

/* Floating Action Button - Redesigned */
.fab-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.fab-main {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border: none;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1051;
}

.fab-main:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.4);
}

.fab-main:active {
    transform: scale(0.95);
}

.fab-options {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 1050;
}

/* Route determination loading styles */
.route-determination-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.route-determination-loading .loading-content {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    max-width: 400px;
    text-align: center;
}

.route-determination-loading .loading-spinner {
    margin-bottom: 1.5rem;
}

.route-determination-loading .loading-spinner i {
    color: #667eea;
    font-size: 2.5rem;
}

.route-determination-loading h4 {
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.route-determination-loading p {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

.fab-options.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.fab-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    color: var(--primary-color);
    font-size: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-option:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: var(--primary-color);
    color: white;
}

.fab-option:active {
    transform: scale(0.95);
}

/* Mobile Responsive for FAB */
@media (max-width: 768px) {
    .fab-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .fab-main {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    
    .fab-option {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .fab-options {
        bottom: 65px;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .fab-container {
        bottom: 1rem;
        right: 1rem;
    }
    
    .fab-main {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }
    
    .fab-option {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .fab-options {
        bottom: 60px;
    }
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-indicator.loading {
    opacity: 1;
}

.progress-bar {
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.2);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    animation: progress-fill 1s ease-in-out infinite;
}

@keyframes progress-fill {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* Responsive Sidebar */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
        position: fixed;
        z-index: 1050;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        width: 280px; /* Keep full width on mobile even when "collapsed" */
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 0.5rem;
    }
    
    .sidebar-overlay {
        display: block;
    }
    
    .content {
        padding: 1rem;
    }
    
    /* Show mobile close button on mobile */
    .mobile-close-btn {
        display: block !important;
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        z-index: 1050;
    }
    
    /* Hide desktop sidebar toggle on mobile */
    .sidebar-toggle {
        display: none;
    }
    
    /* Adjust sidebar header for mobile */
    .sidebar-header {
        padding: 1rem;
    }
    
    /* Ensure sidebar content is properly sized on mobile */
    .sidebar-nav {
        padding-bottom: 2rem;
    }
    
    /* Mobile-friendly navigation items */
    .nav-item {
        margin: 0;
    }
    
    .sidebar-link {
        min-height: 56px; /* Larger touch target on mobile */
        padding: 1rem;
        font-size: 1rem;
    }
    
    .sidebar-link i {
        font-size: 1.2rem;
        margin-right: 1rem;
    }
    
    /* Improve mobile scrolling */
    .sidebar {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    /* Mobile-friendly section headers */
    .sidebar-section-header {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Mobile-friendly dividers */
    .nav-divider {
        margin: 0.5rem 1rem;
        height: 1px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Mobile-friendly footer */
    .sidebar-footer {
        padding: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: auto;
    }
}

@media (min-width: 769px) {
    .sidebar-overlay {
        display: none;
    }
    
    .mobile-sidebar-toggle {
        display: none;
    }
    
    .mobile-close-btn {
        display: none;
    }
    
    .sidebar-toggle {
        display: block;
    }
}

@media (max-width: 576px) {
    .content {
        padding: 0.5rem;
    }
    
    .main-content {
        padding-top: 0.25rem;
    }
    
    .mobile-sidebar-toggle {
        top: 0.5rem;
        left: 0.5rem;
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
    
    .sidebar {
        width: 100%;
        max-width: 320px;
    }
    
    .sidebar-header {
        padding: 0.75rem;
    }
    
    .sidebar-nav {
        padding-bottom: 1.5rem;
    }
}

/* Auth Page Styles */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Ensure MainNavigation doesn't overlap auth content */
.auth-page .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.auth-page .auth-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    margin-top: 80px; /* Account for navbar height with extra padding */
    min-height: calc(100vh - 80px);
    width: 100%;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    min-width: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    width: 100%;
    margin: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.auth-card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    text-align: center;
    padding: 1.5rem;
    border-radius: 1rem 1rem 0 0;
}

.auth-card-body {
    padding: 2rem;
}

.auth-page .form-group {
    margin-bottom: 1.5rem;
}

.auth-page .form-control {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.auth-page .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.auth-page .btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.auth-page .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.auth-page .alert {
    border-radius: 0.5rem;
    border: none;
    padding: 1rem 1.25rem;
}

.auth-page a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-page a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Override Bootstrap container constraints for auth page */
.auth-page .container,
.auth-page .container-fluid {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.auth-page .row {
    margin: 0 !important;
    width: 100% !important;
}

.auth-page .col,
.auth-page .col-md-6,
.auth-page .col-lg-4 {
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
}

/* Responsive Auth Page */
@media (max-width: 768px) {
    .auth-page .auth-container {
        padding: 1rem 0.5rem;
        margin-top: 0; /* No navbar on mobile */
        min-height: 100vh;
    }
    
    .auth-container {
        max-width: 100%;
        min-width: auto;
        width: 100%;
    }
    
    .auth-card-body {
        padding: 1.5rem;
    }
    
    .auth-card {
        margin: 0;
        border-radius: 0.5rem;
    }
}

@media (max-width: 576px) {
    .auth-page .auth-container {
        padding: 0.5rem;
    }
    
    .auth-card-body {
        padding: 1rem;
    }
    
    .auth-page .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }
}

/* Original Blazor styles */
a, .btn-link {
    color: #006bb7;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* TEST STYLE - If you see this, CSS is loading */
body {
    background-color: #f0f8ff !important;
    border: 5px solid red !important;
}

/* Welcome Page Styles */
.welcome-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.welcome-page::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.welcome-hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.welcome-container {
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.welcome-header {
    margin-bottom: 4rem;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.welcome-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.welcome-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.option-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.option-card:hover::before {
    opacity: 1;
}

.option-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
}

.option-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.option-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.option-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.feature-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Modal Styles */
.app-development-modal,
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    color: white;
    padding: 1.5rem 2rem;
    border-radius: 1rem 1rem 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-description {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.feature-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item:hover {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.05);
}

.feature-item.selected {
    border-color: var(--primary-color);
    background: rgba(0, 123, 255, 0.1);
}

.feature-checkbox {
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-top: 0.25rem;
}

.feature-content {
    flex: 1;
}

.feature-content h5 {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--dark-color);
}

.feature-content p {
    margin: 0 0 0.75rem 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.4;
}

.feature-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Pricing Summary */
.pricing-summary {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

.summary-header h4 {
    margin: 0;
    color: var(--dark-color);
}

.total-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.selected-features {
    max-height: 200px;
    overflow-y: auto;
}

.selected-feature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.selected-feature:last-child {
    border-bottom: none;
}

.no-features {
    color: var(--secondary-color);
    font-style: italic;
    text-align: center;
    margin: 1rem 0;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Success Modal */
.success-content {
    text-align: center;
    max-width: 500px;
}

.success-icon {
    font-size: 4rem;
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.success-content h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.success-content p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.success-details {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Error Modal */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.error-content {
    text-align: center;
    max-width: 500px;
}

.error-icon {
    font-size: 4rem;
    color: var(--danger-color);
    margin-bottom: 1.5rem;
}

.error-content h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.error-content p {
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .welcome-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .option-card {
        padding: 2rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .welcome-hero {
        padding: 1rem 0.5rem;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .option-card {
        padding: 1.5rem;
    }
    
    .modal-header {
        padding: 1rem 1.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* Enhanced Loading Container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    /* Prevent layout shifts during route changes */
    will-change: opacity;
    transition: opacity 0.3s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

/* Route-aware loading improvements */
.loading-container[data-route] {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.loading-container[data-route="home"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.loading-container[data-route="dashboard"] {
    background: linear-gradient(135deg, #e8f5e8 0%, #c8e6c9 100%);
}

.loading-container[data-route="projects"] {
    background: linear-gradient(135deg, #fff3e0 0%, #ffcc02 100%);
}

.loading-container[data-route="settings"] {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
}

/* Loading Content */
.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
}

/* Loading Logo */
.loading-logo {
    margin-bottom: 1.5rem;
}

.loading-logo i {
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Loading Title */
.loading-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Loading Subtitle */
.loading-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Loading Progress */
.loading-progress {
    margin-bottom: 2rem;
    width: 100%;
}

.loading-progress .progress {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.loading-progress .progress-bar {
    background: linear-gradient(90deg, #fff, #e3f2fd);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Loading Spinner */
.loading-spinner {
    margin-bottom: 2rem;
}

.loading-spinner .spinner-border {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

/* Loading Steps */
.loading-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.loading-steps .step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.loading-steps .step.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(10px);
}

.loading-steps .step.completed {
    opacity: 1;
    background: rgba(76, 175, 80, 0.3);
    transform: translateX(10px);
}

.loading-steps .step.completed i {
    color: #4caf50;
}

.loading-steps .step.active i {
    color: #2196f3;
}

.loading-steps .step i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
    transition: color 0.3s ease;
}

.loading-steps .step span {
    font-size: 0.9rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Blazor Ready State */
.loading-container.blazor-ready {
    opacity: 0;
    pointer-events: none;
}

/* Spin Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Container Spinner (fallback) */
.loading-container .spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-container p {
    font-size: 1.1rem;
    margin: 0;
}

/* Forex Trading Page */
.forex-trading-page {
    padding: 2rem;
    background: #f8f9fa;
    min-height: calc(100vh - 56px);
}

.trading-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.trading-header h1 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.trading-header p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin: 0;
}

.trading-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.market-overview,
.trading-actions,
.account-summary {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.market-overview h3,
.trading-actions h3,
.account-summary h3 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.75rem;
}

/* Currency Pairs */
.currency-pairs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.currency-pair {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.currency-pair:hover {
    background: rgba(0, 123, 255, 0.05);
    transform: translateX(5px);
}

.pair-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pair-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
}

.pair-rate {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pair-change {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
}

.pair-change.positive {
    color: var(--success-color);
    background: rgba(40, 167, 69, 0.1);
}

.pair-change.negative {
    color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
}

/* Trading Actions */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-buttons .btn {
    padding: 1rem 1.5rem;
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Account Summary */
.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-card {
    background: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.summary-card:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.card-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.card-content p {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-color);
}

.card-content p.positive {
    color: var(--success-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .forex-trading-page {
        padding: 1rem;
    }
    
    .trading-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .trading-dashboard {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .market-overview,
    .trading-actions,
    .account-summary {
        padding: 1.5rem;
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .summary-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .forex-trading-page {
        padding: 0.5rem;
    }
    
    .trading-header {
        padding: 1rem;
    }
    
    .trading-header h1 {
        font-size: 1.75rem;
    }
    
    .market-overview,
    .trading-actions,
    .account-summary {
        padding: 1rem;
    }
    
    .currency-pair {
        padding: 0.75rem;
    }
    
    .summary-card {
        padding: 1rem;
    }
}

/* Home Page Styles */
.home-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-section {
    padding: 4rem 0;
    background: white;
    border-bottom: 1px solid #e9ecef;
}

.hero-section h1 {
    color: var(--dark-color);
    margin-bottom: 1.5rem;
}

.hero-section .lead {
    color: var(--secondary-color);
    font-size: 1.25rem;
    line-height: 1.6;
}

.feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.feature-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark-color);
    font-weight: 600;
}

.feature-item p {
    margin: 0;
    color: var(--secondary-color);
    line-height: 1.5;
}

.services-section {
    padding: 4rem 0;
}

.service-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex: 1;
}

.service-card .btn {
    align-self: center;
}

/* Responsive Design for Home Page */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .feature-highlights {
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .services-section {
        padding: 2rem 0;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-item i {
        margin-top: 0;
    }
}

/* Exchange Rate Display */
.exchange-rate-display {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    font-weight: 500;
    color: var(--dark-color);
}

.exchange-rate-display .text-muted {
    color: var(--secondary-color) !important;
    font-weight: normal;
}

/* Currency Price Display */
.feature-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.feature-price span {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.feature-price small {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* Selected Feature Price */
.selected-feature span:last-child {
    font-weight: 600;
    color: var(--primary-color);
}

/* Searchable Dropdown */
.searchable-dropdown {
    position: relative;
    width: 100%;
}

.searchable-dropdown input {
    width: 100%;
    cursor: pointer;
}

.dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.25rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-item.selected {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item.no-results {
    color: var(--secondary-color);
    font-style: italic;
    cursor: default;
}

.dropdown-item.no-results:hover {
    background-color: transparent;
}

.country-name {
    font-weight: 500;
    flex: 1;
}

.country-currency {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 0.5rem;
}

.country-dial-code {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.dropdown-item.selected .country-currency,
.dropdown-item.selected .country-dial-code {
    color: rgba(255, 255, 255, 0.8);
}

/* Phone Input with Dial Code */
.phone-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.phone-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.dial-code-display {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-right: 1px solid #e9ecef;
    color: var(--dark-color);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
    flex-shrink: 0;
}

.phone-input {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    flex: 1;
}

.phone-input:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Responsive Design for Dropdown */
@media (max-width: 768px) {
    .dropdown-list {
        max-height: 250px;
    }
    
    .dropdown-item {
        padding: 0.5rem 0.75rem;
    }
    
    .country-name {
        font-size: 0.9rem;
    }
    
    .country-currency,
    .country-dial-code {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .dropdown-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .country-currency,
    .country-dial-code {
        margin: 0;
    }
}

/* ===== SETTINGS PAGE STYLES ===== */
.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f9fa;
    min-height: 100vh;
}

.settings-header {
    text-align: center;
    margin-bottom: 3rem;
}

.settings-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.settings-header h1 i {
    margin-right: 1rem;
    color: #007bff;
}

.settings-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

.settings-tabs {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    overflow-x: auto;
}

.tab-button {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.tab-button:hover {
    color: #007bff;
    background: #e9ecef;
}

.tab-button.active {
    color: #007bff;
    background: white;
    border-bottom-color: #007bff;
}

.tab-button i {
    font-size: 1rem;
}

.tab-content {
    padding: 2rem;
}

.settings-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.settings-section h2 i {
    color: #007bff;
}

.settings-form {
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}

.form-control[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
    display: block;
}

.form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #dee2e6;
}

/* Profile Picture Upload */
.profile-picture-upload {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e9ecef;
}

.current-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Security Items */
.security-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.security-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
}

.security-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Notification Items */
.notification-group {
    margin-bottom: 2rem;
}

.notification-group h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.notification-info {
    flex: 1;
}

.notification-info strong {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.notification-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007bff;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Billing Overview */
.billing-overview {
    display: grid;
    gap: 2rem;
    max-width: 800px;
}

.current-plan,
.billing-history,
.payment-method {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    background: #f8f9fa;
}

.current-plan h4,
.billing-history h4,
.payment-method h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.plan-name {
    color: #007bff;
    font-weight: 700;
}

.billing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #dee2e6;
}

.billing-item:last-child {
    border-bottom: none;
}

.card-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Courier New', monospace;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.card-info i {
    font-size: 1.5rem;
    color: #007bff;
}

/* Integrations Grid */
.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
}

.integration-card {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.75rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.integration-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.integration-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
}

.integration-icon i {
    font-size: 1.5rem;
    color: #007bff;
}

.integration-info {
    flex: 1;
}

.integration-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.25rem 0;
}

.integration-info p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0 0 0.5rem 0;
}

.status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    text-transform: uppercase;
}

.status.connected {
    background: #d4edda;
    color: #155724;
}

.status.disconnected {
    background: #f8d7da;
    color: #721c24;
}

/* Advanced Settings */
.advanced-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    background: #f8f9fa;
}

.advanced-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.advanced-item p {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.code-editor {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: #2d3748;
    color: #e2e8f0;
    border: 2px solid #4a5568;
    resize: vertical;
}

.code-editor:focus {
    border-color: #007bff;
    background: #2d3748;
    color: #e2e8f0;
}

.code-editor::placeholder {
    color: #a0aec0;
}

/* Danger Zone */
.danger-zone {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #dc3545;
}

.danger-zone h4 {
    color: #dc3545;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.danger-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid #f5c6cb;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    background: #f8d7da;
}

.danger-info strong {
    display: block;
    font-weight: 600;
    color: #721c24;
    margin-bottom: 0.25rem;
}

.danger-info p {
    font-size: 0.9rem;
    color: #721c24;
    margin: 0;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-outline-primary {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.btn-outline-primary:hover {
    background: #007bff;
    color: white;
}

.btn-outline-success {
    background: transparent;
    color: #28a745;
    border: 2px solid #28a745;
}

.btn-outline-success:hover {
    background: #28a745;
    color: white;
}

.btn-outline-danger {
    background: transparent;
    color: #dc3545;
    border: 2px solid #dc3545;
}

.btn-outline-danger:hover {
    background: #dc3545;
    color: white;
}

.btn-outline-warning {
    background: transparent;
    color: #ffc107;
    border: 2px solid #ffc107;
}

.btn-outline-warning:hover {
    background: #ffc107;
    color: #212529;
}

.btn-link {
    background: none;
    color: #007bff;
    border: none;
    padding: 0.5rem 0;
    text-decoration: underline;
}

.btn-link:hover {
    color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
    .settings-container {
        padding: 1rem;
    }

    .tab-navigation {
        flex-direction: column;
    }

    .tab-button {
        justify-content: center;
        padding: 1rem;
    }

    .tab-content {
        padding: 1rem;
    }

    .security-item,
    .notification-item,
    .danger-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .profile-picture-upload {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .integrations-grid {
        grid-template-columns: 1fr;
    }

    .integration-card {
        flex-direction: column;
        text-align: center;
    }

    .billing-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ===== PROJECTS PAGE STYLES ===== */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: #f8f9fa;
    min-height: 100vh;
}

.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #e9ecef;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.header-content h1 i {
    margin-right: 1rem;
    color: #007bff;
}

.projects-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin: 0;
}

.header-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 4rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.empty-state p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
}

.project-type {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #007bff;
}

.project-type i {
    font-size: 1.2rem;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-draft {
    background: #f8d7da;
    color: #721c24;
}

.status-development {
    background: #fff3cd;
    color: #856404;
}

.status-staging {
    background: #d1ecf1;
    color: #0c5460;
}

.status-published {
    background: #d4edda;
    color: #155724;
}

.status-archived {
    background: #e2e3e5;
    color: #383d41;
}

.project-content {
    padding: 1rem 1.5rem 1.5rem;
}

.project-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.meta-item i {
    width: 14px;
    text-align: center;
    color: #007bff;
}

.project-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header h3 i {
    color: #007bff;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.modal-body {
    padding: 0 1.5rem;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    margin-top: 1.5rem;
}

.modal-footer .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Projects Page Responsive Design */
@media (max-width: 768px) {
    .projects-container {
        padding: 1rem;
    }

    .projects-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-actions {
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .btn-sm {
        flex: 1 1 calc(50% - 0.125rem);
        min-width: 0;
    }

    .modal-content {
        width: 95%;
        margin: 1rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* ===== WEBSITE BUILDER STYLES ===== */
.builder-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f6fa;
    overflow: hidden;
}

/* Builder Header */
.builder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-ghost {
    background: none;
    border: none;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-ghost:hover {
    background: #f8f9fa;
    color: #495057;
}

.project-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-info h1 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.project-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.header-center {
    display: flex;
    justify-content: center;
}

.view-modes {
    display: flex;
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.25rem;
    gap: 0.25rem;
}

.view-mode {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-radius: 0.375rem;
    color: #6c757d;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-mode:hover {
    color: #495057;
    background: rgba(255, 255, 255, 0.7);
}

.view-mode.active {
    background: white;
    color: #007bff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auto-save-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    color: #856404;
    font-size: 0.875rem;
    font-weight: 500;
}

.auto-save-status i {
    color: #f39c12;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Builder Workspace */
.builder-workspace {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Component Library */
.component-library {
    width: 280px;
    background: white;
    border-right: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.component-library.collapsed {
    width: 60px;
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    min-height: 60px;
}

.library-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
}

.toggle-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.875rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.library-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.library-content-collapsed {
    flex: 1;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6c757d;
    background: transparent;
}

.category-icon:hover {
    background: #e9ecef;
    color: #495057;
}

.category-icon.active {
    background: #007bff;
    color: white;
}

.component-categories {
    margin-bottom: 1rem;
}

.category {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
    background: transparent;
}

.category:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.category.active {
    background: #007bff;
    color: white;
}

.category i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.components-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.component-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: grab;
    transition: all 0.2s ease;
    background: white;
}

.component-item:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.component-item:active {
    cursor: grabbing;
}

.component-preview {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    color: #6c757d;
}

.component-info h5 {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
}

.component-info p {
    font-size: 0.75rem;
    margin: 0;
    color: #6c757d;
    line-height: 1.3;
}

/* Canvas Container */
.canvas-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
    overflow: hidden;
}

.canvas-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: auto;
}

.canvas {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-height: 600px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    transition: all 0.3s ease;
}

.canvas.drag-over {
    background: #f8f9fa;
    border: 2px dashed #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.canvas.desktop {
    max-width: 1200px;
}

.canvas.tablet {
    max-width: 768px;
}

.canvas.mobile {
    max-width: 375px;
}

.empty-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    text-align: center;
    color: #6c757d;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.empty-canvas h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.empty-canvas p {
    font-size: 1rem;
    margin: 0;
    color: #6c757d;
}

.canvas-component {
    position: relative;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.canvas-component:hover {
    border-color: #e9ecef;
}

.canvas-component.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.component-controls {
    position: absolute;
    top: -10px;
    right: -10px;
    display: flex;
    gap: 0.25rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.canvas-component:hover .component-controls,
.canvas-component.selected .component-controls {
    opacity: 1;
}

.control-btn {
    background: none;
    border: none;
    color: #6c757d;
    font-size: 0.75rem;
    padding: 0.25rem;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.control-btn.delete:hover {
    background: #dc3545;
    color: white;
}

/* Properties Panel */
.properties-panel {
    width: 300px;
    background: white;
    border-left: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    transition: width 0.3s ease;
}

.properties-panel.collapsed {
    width: 60px;
}

.properties-panel.double-expanded {
    width: 500px;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    min-height: 60px;
}

.panel-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
}

.panel-controls {
    display: flex;
    gap: 0.25rem;
}

.expand-btn {
    font-size: 0.75rem;
}

.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.panel-content-collapsed {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collapsed-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.25rem;
}

.component-properties h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}

.property-group {
    margin-bottom: 1rem;
}

.property-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.property-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.no-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    text-align: center;
    color: #6c757d;
}

.no-selection i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .component-library,
    .properties-panel {
        width: 250px;
    }

    .component-library.collapsed,
    .properties-panel.collapsed {
        width: 50px;
    }

    .properties-panel.double-expanded {
        width: 400px;
    }

    .canvas.desktop {
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .builder-header {
        flex-direction: column;
        gap: 1rem;
    }

    .header-left,
    .header-right {
        width: 100%;
        justify-content: center;
    }

    .header-center {
        order: -1;
    }

    .view-modes {
        gap: 0.5rem;
    }

    .component-library,
    .properties-panel {
        width: 200px;
    }

    .component-library.collapsed,
    .properties-panel.collapsed {
        width: 40px;
    }

    .properties-panel.double-expanded {
        width: 300px;
    }

    .canvas-wrapper {
        padding: 1rem;
    }

    .canvas.desktop,
    .canvas.tablet,
    .canvas.mobile {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .builder-workspace {
        flex-direction: column;
    }

    .component-library,
    .properties-panel {
        width: 100%;
        height: auto;
        max-height: 200px;
    }

    .component-library.collapsed,
    .properties-panel.collapsed {
        width: 100%;
        height: 60px;
    }

    .properties-panel.double-expanded {
        width: 100%;
        max-height: 300px;
    }

    .library-content,
    .panel-content {
        max-height: 150px;
        overflow-y: auto;
    }

    .component-categories {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .category {
        flex-shrink: 0;
        min-width: 120px;
    }

    .components-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .component-item {
        margin: 0;
    }
}

/* ===== TEMPLATES PAGE STYLES ===== */
.templates-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: #f5f6fa;
    min-height: 100vh;
}

/* Templates Header */
.templates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-content h1 i {
    color: #007bff;
}

.templates-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: #6c757d;
    z-index: 2;
}

.search-box input {
    width: 300px;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.view-toggle {
    display: flex;
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    border-radius: 0.375rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover {
    color: #495057;
    background: rgba(255, 255, 255, 0.7);
}

.view-btn.active {
    background: white;
    color: #007bff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Templates Filters */
.templates-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-section {
    display: flex;
    gap: 2rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
}

.filter-select {
    min-width: 150px;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 0.375rem;
    background: white;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.results-count {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

/* Templates Content */
.templates-content {
    min-height: 400px;
}

.templates-grid {
    display: grid;
    gap: 2rem;
}

.templates-grid.grid {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.templates-grid.list {
    grid-template-columns: 1fr;
}

/* Template Cards */
.template-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.template-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.template-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template-card:hover .template-image img {
    transform: scale(1.05);
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #8b5a00;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.template-info {
    padding: 1.5rem;
}

.template-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.template-info p {
    color: #6c757d;
    line-height: 1.5;
    margin: 0 0 1rem 0;
}

.template-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.template-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.stars i {
    color: #dee2e6;
    font-size: 0.875rem;
}

.stars i.filled {
    color: #ffc107;
}

.rating-text {
    font-size: 0.875rem;
    color: #6c757d;
}

.template-usage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

/* List View Styles */
.templates-grid.list .template-card {
    display: flex;
    height: 200px;
}

.templates-grid.list .template-image {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.templates-grid.list .template-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Template Preview Modal */
.template-preview-modal {
    width: 90vw;
    max-width: 1200px;
    max-height: 90vh;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.template-preview-modal .modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.template-preview-modal .modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.template-preview-modal .modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.preview-container {
    flex: 2;
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.preview-toolbar {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
}

.device-buttons {
    display: flex;
    background: white;
    border-radius: 0.5rem;
    padding: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.device-btn {
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    border-radius: 0.375rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}

.device-btn:hover {
    color: #495057;
    background: #f8f9fa;
}

.device-btn.active {
    background: #007bff;
    color: white;
}

.preview-frame {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.preview-frame img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.preview-frame.desktop img {
    width: 100%;
}

.preview-frame.tablet img {
    width: 70%;
}

.preview-frame.mobile img {
    width: 40%;
}

.template-details {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    border-left: 1px solid #e9ecef;
}

.template-description h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.template-description p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.template-features h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 1rem 0;
}

.template-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.template-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #495057;
}

.template-features li i {
    color: #28a745;
    width: 16px;
}

.template-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6c757d;
    font-size: 0.875rem;
}

.stat i {
    color: #007bff;
    width: 16px;
}

.template-preview-modal .modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state .empty-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 2rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #495057;
    margin: 0 0 1rem 0;
}

.empty-state p {
    font-size: 1.125rem;
    margin: 0 0 2rem 0;
    max-width: 400px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .templates-container {
        padding: 1.5rem;
    }

    .templates-grid.grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .search-box input {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .templates-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .search-box input {
        width: 200px;
    }

    .templates-filters {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .filter-section {
        width: 100%;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .filter-group {
        min-width: 140px;
    }

    .templates-grid.grid {
        grid-template-columns: 1fr;
    }

    .templates-grid.list .template-card {
        flex-direction: column;
        height: auto;
    }

    .templates-grid.list .template-image {
        width: 100%;
        height: 200px;
    }

    .template-preview-modal {
        width: 95vw;
        height: 90vh;
    }

    .template-preview-modal .modal-body {
        flex-direction: column;
    }

    .template-details {
        border-left: none;
        border-top: 1px solid #e9ecef;
    }

    .preview-frame.tablet img,
    .preview-frame.mobile img {
        width: 80%;
    }
}

@media (max-width: 576px) {
    .templates-container {
        padding: 1rem;
    }

    .templates-header,
    .templates-filters {
        padding: 1rem;
    }

    .header-content h1 {
        font-size: 1.75rem;
    }

    .search-box input {
        width: 150px;
    }

    .filter-section {
        gap: 0.75rem;
    }

    .filter-group {
        min-width: 120px;
    }

    .template-card {
        margin: 0;
    }

    .template-info {
        padding: 1rem;
    }

    .template-preview-modal .modal-header,
    .template-preview-modal .modal-footer {
        padding: 1rem;
    }

    .template-details {
        padding: 1rem;
    }
}

/* ===== ASSET MANAGER STYLES ===== */
.asset-manager-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: #f5f6fa;
    min-height: 100vh;
}

/* Asset Manager Header */
.asset-manager-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.asset-manager-header .header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.asset-manager-header .header-content h1 i {
    color: #007bff;
}

.asset-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.upload-section {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.upload-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.view-options {
    display: flex;
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.view-btn {
    padding: 0.5rem 0.75rem;
    background: none;
    border: none;
    border-radius: 0.375rem;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s;
}

.view-btn:hover {
    color: #495057;
    background: rgba(255, 255, 255, 0.7);
}

.view-btn.active {
    background: white;
    color: #007bff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Asset Filters */
.asset-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.asset-filters .filter-section {
    display: flex;
    gap: 2rem;
    align-items: end;
}

.search-group {
    margin-left: auto;
}

.asset-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-item i {
    color: #007bff;
}

/* Asset Content */
.asset-content {
    min-height: 400px;
}

.assets-grid {
    display: grid;
    gap: 1.5rem;
}

.assets-grid.grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.assets-grid.list {
    grid-template-columns: 1fr;
}

/* Asset Cards */
.asset-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.asset-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.asset-card.selected {
    border: 2px solid #007bff;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.3);
}

.asset-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.asset-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.asset-card:hover .asset-preview img {
    transform: scale(1.05);
}

.video-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2c3e50;
}

.video-preview i {
    font-size: 3rem;
    color: white;
    position: absolute;
    z-index: 2;
}

.video-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.document-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
}

.document-preview i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.file-extension {
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

.selection-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background: #007bff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.asset-info {
    padding: 1rem;
}

.asset-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.asset-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
}

.asset-actions {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asset-card:hover .asset-actions {
    opacity: 1;
}

.action-btn {
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: white;
    transform: scale(1.1);
}

.action-btn.delete {
    color: #dc3545;
}

.action-btn.delete:hover {
    background: #dc3545;
    color: white;
}

/* List View Styles */
.assets-grid.list .asset-card {
    display: flex;
    height: 120px;
}

.assets-grid.list .asset-preview {
    width: 160px;
    height: 120px;
    flex-shrink: 0;
}

.assets-grid.list .asset-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.assets-grid.list .asset-actions {
    position: static;
    opacity: 1;
    margin-left: auto;
    align-self: flex-start;
    margin-top: 1rem;
    margin-right: 1rem;
}

/* Upload Progress */
.upload-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.upload-status {
    text-align: center;
    margin-bottom: 2rem;
}

.upload-status i {
    font-size: 4rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.upload-status h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
}

.upload-status p {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0;
}

.progress-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Bulk Actions */
.bulk-actions {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem 2rem;
    border-radius: 2rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.bulk-info {
    font-weight: 600;
    color: #495057;
}

.bulk-buttons {
    display: flex;
    gap: 1rem;
}

/* Asset Preview Modal */
.asset-preview-modal {
    width: 90vw;
    max-width: 1000px;
    max-height: 90vh;
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.asset-preview-modal .modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.asset-preview-modal .modal-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    word-break: break-all;
}

.asset-preview-modal .modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.preview-content {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f8f9fa;
}

.preview-content img,
.preview-content video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.document-preview-large {
    text-align: center;
    color: #6c757d;
}

.document-preview-large i {
    font-size: 6rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.document-preview-large h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    word-break: break-all;
}

.asset-details {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    border-left: 1px solid #e9ecef;
}

.detail-group {
    margin-bottom: 1.5rem;
}

.detail-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.detail-group span {
    display: block;
    color: #6c757d;
    word-break: break-all;
}

.url-group {
    display: flex;
    gap: 0.5rem;
}

.url-input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    background: #f8f9fa;
}

.asset-preview-modal .modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .asset-manager-container {
        padding: 1.5rem;
    }

    .assets-grid.grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .asset-manager-header {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .asset-manager-header .header-content h1 {
        font-size: 2rem;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .asset-filters {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .asset-filters .filter-section {
        width: 100%;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .search-group {
        margin-left: 0;
        width: 100%;
    }

    .asset-stats {
        width: 100%;
        justify-content: space-between;
    }

    .assets-grid.grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .assets-grid.list .asset-card {
        flex-direction: column;
        height: auto;
    }

    .assets-grid.list .asset-preview {
        width: 100%;
        height: 160px;
    }

    .assets-grid.list .asset-actions {
        position: absolute;
        top: 1rem;
        left: 1rem;
        opacity: 0;
        margin: 0;
    }

    .assets-grid.list .asset-card:hover .asset-actions {
        opacity: 1;
    }

    .asset-preview-modal {
        width: 95vw;
        height: 90vh;
    }

    .asset-preview-modal .modal-body {
        flex-direction: column;
    }

    .asset-details {
        border-left: none;
        border-top: 1px solid #e9ecef;
    }

    .bulk-actions {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: none;
        border-radius: 1rem;
        flex-direction: column;
        gap: 1rem;
    }

    .bulk-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .asset-manager-container {
        padding: 1rem;
    }

    .asset-manager-header,
    .asset-filters {
        padding: 1rem;
    }

    .asset-manager-header .header-content h1 {
        font-size: 1.75rem;
    }

    .assets-grid.grid {
        grid-template-columns: 1fr;
    }

    .asset-preview {
        height: 160px;
    }

    .asset-info {
        padding: 0.75rem;
    }

    .asset-preview-modal .modal-header,
    .asset-preview-modal .modal-footer {
        padding: 1rem;
    }

    .asset-details {
        padding: 1rem;
    }
}

/* Generated Project Modal */
.generated-project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.generated-project-modal .modal-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.generated-project-modal .modal-header {
    text-align: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
    position: relative;
}

.generated-project-modal .success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: white;
    animation: bounceIn 0.6s ease-out;
}

.generated-project-modal h2 {
    color: #1f2937;
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.generated-project-modal .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #6b7280;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.generated-project-modal .close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.generated-project-modal .modal-body {
    padding: 30px;
}

.project-preview h3 {
    font-size: 24px;
    color: #1f2937;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.project-description {
    color: #6b7280;
    margin-bottom: 25px;
    font-size: 16px;
    line-height: 1.6;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
}

.stat-item i {
    color: #3b82f6;
    width: 16px;
}

.generated-pages h4,
.design-preview h4 {
    font-size: 18px;
    color: #1f2937;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.pages-list {
    display: grid;
    gap: 10px;
    margin-bottom: 30px;
}

.page-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    position: relative;
}

.page-item i {
    color: #3b82f6;
    width: 16px;
}

.page-item strong {
    display: block;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 2px;
}

.page-item small {
    color: #6b7280;
    font-size: 12px;
}

.home-badge {
    position: absolute;
    right: 12px;
    background: #10b981;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.color-palette {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.font-info {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.login-prompt {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin-top: 30px;
}

.login-prompt .prompt-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

.login-prompt h4 {
    font-size: 20px;
    color: #1f2937;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.login-prompt p {
    color: #374151;
    margin-bottom: 20px;
    line-height: 1.6;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    font-size: 14px;
}

.benefit-item i {
    color: #10b981;
    width: 16px;
}

.expiration-warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #92400e;
    font-size: 14px;
    margin-top: 20px;
}

.expiration-warning i {
    color: #f59e0b;
    width: 16px;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px 30px 30px;
    border-top: 1px solid #e5e7eb;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes modalSlideIn {
    0% { transform: translateY(-50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .generated-project-modal {
        padding: 10px;
    }
    
    .generated-project-modal .modal-content {
        max-height: 95vh;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
    }
    
    .benefits-list {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

/* Generate Project Modal Styles */
.generate-project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.generate-project-modal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
}

.generate-project-modal .modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 95%;
    width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.generate-project-modal .modal-header {
    padding: 1.5rem 2rem 1rem;
    border-bottom: 1px solid #e3e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.generate-project-modal .modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
}

.generate-project-modal .close-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.generate-project-modal .close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.generate-project-modal .modal-body {
    padding: 2rem;
}

.generate-project-modal .form-section {
    margin-bottom: 2rem;
}

.generate-project-modal .form-section h4 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.generate-project-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.generate-project-modal .form-group {
    margin-bottom: 1rem;
}

.generate-project-modal .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.generate-project-modal .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.generate-project-modal .form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.generate-project-modal .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.generate-project-modal .feature-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.generate-project-modal .feature-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.generate-project-modal .feature-item.selected {
    border-color: #3b82f6;
    background: #eff6ff;
}

.generate-project-modal .feature-checkbox {
    flex-shrink: 0;
}

.generate-project-modal .feature-content {
    flex: 1;
}

.generate-project-modal .feature-content h5 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.generate-project-modal .feature-content p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.generate-project-modal .feature-price {
    flex-shrink: 0;
    font-weight: 600;
    color: #059669;
    font-size: 1rem;
}

.generate-project-modal .pricing-summary {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.generate-project-modal .summary-header {
    margin-bottom: 1rem;
}

.generate-project-modal .summary-header h4 {
    margin: 0;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 600;
}

.generate-project-modal .selected-features {
    margin-bottom: 1rem;
}

.generate-project-modal .selected-feature {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.generate-project-modal .selected-feature:last-child {
    border-bottom: none;
}

.generate-project-modal .total-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #059669;
    text-align: right;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e5e7eb;
}

.generate-project-modal .estimated-timeline {
    margin-top: 0.5rem;
    text-align: right;
}

.generate-project-modal .form-actions {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e3e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.generate-project-modal .form-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.generate-project-modal .form-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success Modal Styles */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.success-modal .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
}

.success-modal .modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 600px;
    width: 100%;
    position: relative;
    z-index: 9999;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.success-modal .modal-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    position: relative;
}

.success-modal .success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: bounceIn 0.6s ease-out;
}

.success-modal .success-icon i {
    font-size: 2.5rem;
    color: white;
}

.success-modal .modal-header h2 {
    margin: 0;
    color: #1f2937;
    font-size: 1.75rem;
    font-weight: 600;
}

.success-modal .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.success-modal .close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.success-modal .modal-body {
    padding: 0 2rem 2rem;
}

.success-modal .success-content {
    text-align: center;
}

.success-modal .success-content h3 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.success-modal .success-content p {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-modal .success-details {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.success-modal .detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.success-modal .detail-item:last-child {
    border-bottom: none;
}

.success-modal .detail-item strong {
    color: #374151;
    font-weight: 600;
}

.success-modal .modal-actions {
    padding: 1.5rem 2rem 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.success-modal .modal-actions .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .generate-project-modal .modal-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .generate-project-modal .form-row {
        grid-template-columns: 1fr;
    }
    
    .generate-project-modal .features-grid {
        grid-template-columns: 1fr;
    }
    
    .generate-project-modal .modal-body {
        padding: 1rem;
    }
    
    .generate-project-modal .form-actions {
        padding: 1rem;
        flex-direction: column;
    }
    
    .success-modal .modal-content {
        max-width: 95%;
        margin: 1rem;
    }
    
    .success-modal .modal-actions {
        flex-direction: column;
    }
}

/* Component wrapper styles in builder */
.component-wrapper {
    margin: 10px 0;
    padding: 15px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.component-wrapper:hover {
    border-color: #3b82f6;
    background: #f1f5f9;
}

.canvas-component.selected .component-wrapper {
    border-color: #3b82f6;
    border-style: solid;
    background: #eff6ff;
}

.component-wrapper h1,
.component-wrapper h2,
.component-wrapper h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.component-wrapper p {
    margin-bottom: 0.5rem;
}

.component-wrapper .btn {
    margin: 5px;
}

.component-wrapper .image-placeholder,
.component-wrapper .video-placeholder {
    text-align: center;
    padding: 40px;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    color: #6b7280;
}

.component-wrapper .image-placeholder i,
.component-wrapper .video-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.component-wrapper .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}

.component-wrapper .gallery-item {
    background: #e5e7eb;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
}

.component-wrapper .social-links {
    display: flex;
    gap: 10px;
}

.component-wrapper .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #3b82f6;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    text-decoration: none;
}

.component-wrapper .pricing-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    background: white;
}

.component-wrapper .pricing-card .price {
    font-size: 2rem;
    font-weight: bold;
    color: #3b82f6;
    margin: 10px 0;
}

.component-wrapper .pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.component-wrapper .pricing-card li {
    padding: 5px 0;
    border-bottom: 1px solid #f3f4f6;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    width: auto;
}

/* Draft Project Cards */
.draft-project-card {
    border: 1px solid #ffeaa7;
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    transition: all 0.3s ease;
}

.draft-project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
}

.draft-project-card .card-title {
    color: #856404;
    font-weight: 600;
}

.draft-project-card .badge {
    font-size: 0.75rem;
}

.draft-project-card .btn-outline-primary {
    border-color: #007bff;
    color: #007bff;
}

.draft-project-card .btn-outline-primary:hover {
    background-color: #007bff;
    color: white;
}

/* Template Specifications */
.template-specifications {
    margin-top: 1.5rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.spec-item {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid var(--primary-color);
}

.spec-item strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Enhanced Template Preview Modal */
.template-preview-modal .template-features ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.template-preview-modal .template-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.template-preview-modal .template-features li:last-child {
    border-bottom: none;
}

.template-preview-modal .template-features i {
    color: #28a745;
    font-size: 0.875rem;
}

/* Template Card Enhancements */
.template-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.template-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

.template-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template-card:hover .template-image img {
    transform: scale(1.05);
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Template Categories */
.template-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Template Stats */
.template-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.stat i {
    color: var(--primary-color);
}

/* Responsive Template Grid */
@media (max-width: 768px) {
    .templates-grid.grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .spec-grid {
        grid-template-columns: 1fr;
    }
    
    .template-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .templates-grid.grid {
        grid-template-columns: 1fr;
    }
    
    .template-image img {
        height: 150px;
    }
}

/* Technology and Integration Tags */
.tech-section,
.integration-section {
    margin-top: 1rem;
}

.tech-section h5,
.integration-section h5 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tech-tags,
.integration-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag,
.integration-tag {
    background: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #e9ecef;
}

.tech-tag {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.integration-tag {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #e1bee7;
}

/* Enhanced Template Card */
.template-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.template-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.template-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #f8f9fa;
}

.template-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.template-card:hover .template-image img {
    transform: scale(1.05);
}

.template-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.template-info {
    padding: 1rem;
}

.template-info h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #212529;
}

.template-info p {
    margin: 0 0 1rem 0;
    color: #6c757d;
    font-size: 0.875rem;
    line-height: 1.4;
}

.template-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.template-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.stars i {
    color: #ffc107;
    font-size: 0.75rem;
}

.stars i.filled {
    color: #ffc107;
}

.rating-text {
    font-size: 0.75rem;
    color: #6c757d;
}

.template-usage {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.625rem;
    font-weight: 500;
}

/* Project Creation Page */
.create-project-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.create-project-header {
    text-align: center;
    margin-bottom: 3rem;
}

.create-project-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.create-project-header h1 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.create-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0;
}

.create-project-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.template-selection {
    position: sticky;
    top: 2rem;
}

.selected-template-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.template-preview {
    position: relative;
    overflow: hidden;
}

.template-preview img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.premium-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #000;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.template-info {
    padding: 1.5rem;
}

.template-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.template-info p {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.template-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.template-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.stars i {
    color: #ffc107;
    font-size: 0.75rem;
}

.stars i.filled {
    color: #ffc107;
}

.rating-text {
    font-size: 0.75rem;
    color: #6c757d;
}

.template-usage {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6c757d;
}

.project-form {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    border: 1px solid #e9ecef;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-text {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.features-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.feature-item span {
    font-weight: 500;
    color: #495057;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.error-state {
    text-align: center;
    padding: 3rem;
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.error-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.error-state p {
    color: #6c757d;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .create-project-container {
        padding: 1rem;
    }
    
    .create-project-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .template-selection {
        position: static;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .features-summary {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .create-project-header h1 {
        font-size: 2rem;
    }
    
    .create-subtitle {
        font-size: 1rem;
    }
    
    .project-form {
        padding: 1.5rem;
    }
    
    .template-info {
        padding: 1rem;
    }
}

/* Payment Integrations Page */
.payment-integrations-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.header-content h1 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.payment-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0;
}

.header-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.payment-content {
    min-height: 400px;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.integration-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
    transition: all 0.3s ease;
}

.integration-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.integration-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.provider-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.provider-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.provider-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin: 0 0 0.25rem 0;
}

.provider-name {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
}

.integration-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.mode-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.mode-badge.test {
    background: #fff3cd;
    color: #856404;
}

.mode-badge.live {
    background: #d1ecf1;
    color: #0c5460;
}

.integration-body {
    padding: 1.5rem;
}

.integration-description {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.integration-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

.meta-item i {
    color: var(--primary-color);
}

.supported-methods h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.75rem;
}

.methods-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.method-badge {
    background: #e3f2fd;
    color: #1976d2;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #bbdefb;
}

.integration-actions {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Payment Modal */
.payment-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.payment-modal .modal-body {
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section h3 i {
    color: var(--primary-color);
}

.methods-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.method-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.2s ease;
}

.method-checkbox:hover {
    background: #e9ecef;
}

.method-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.method-checkbox label {
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    margin: 0;
}

.provider-config {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.config-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.config-item label {
    font-weight: 500;
    color: #495057;
    font-size: 0.875rem;
}

.config-item input {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #6c757d;
}

/* Nigerian Payment Provider Specific Styles */
.provider-flutterwave .provider-icon {
    background: linear-gradient(135deg, #f7931e, #ff6b35);
}

.provider-paystack .provider-icon {
    background: linear-gradient(135deg, #00c851, #007e33);
}

.provider-interswitch .provider-icon {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
}

.provider-remita .provider-icon {
    background: linear-gradient(135deg, #4caf50, #2e7d32);
}

.provider-paga .provider-icon {
    background: linear-gradient(135deg, #2196f3, #1976d2);
}

.provider-opay .provider-icon {
    background: linear-gradient(135deg, #ff9800, #f57c00);
}

.provider-quickteller .provider-icon {
    background: linear-gradient(135deg, #9c27b0, #7b1fa2);
}

/* Payment Methods Icons */
.method-card .method-badge {
    background: #e8f5e8;
    color: #2e7d32;
    border-color: #c8e6c9;
}

.method-bank_transfer .method-badge {
    background: #e3f2fd;
    color: #1976d2;
    border-color: #bbdefb;
}

.method-ussd .method-badge {
    background: #fff3e0;
    color: #f57c00;
    border-color: #ffcc02;
}

.method-mobile_money .method-badge {
    background: #f3e5f5;
    color: #7b1fa2;
    border-color: #e1bee7;
}

.method-qr_code .method-badge {
    background: #e0f2f1;
    color: #00695c;
    border-color: #b2dfdb;
}

.method-wallet .method-badge {
    background: #fce4ec;
    color: #c2185b;
    border-color: #f8bbd9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .integrations-grid {
        grid-template-columns: 1fr;
    }
    
    .integration-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .integration-status {
        flex-direction: row;
        align-items: center;
    }
    
    .integration-actions {
        flex-wrap: wrap;
    }
    
    .payment-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .payment-modal .modal-body {
        padding: 1rem;
    }
    
    .methods-selection {
        grid-template-columns: 1fr;
    }
    
    .provider-config {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .payment-integrations-container {
        padding: 1rem;
    }
    
    .header-content h1 {
        font-size: 1.75rem;
    }
    
    .integration-card {
        margin: 0 0.5rem;
    }
    
    .integration-actions {
        flex-direction: column;
    }
    
    .btn-sm {
        width: 100%;
        justify-content: center;
    }
}

/* Payment Statistics Dashboard */
.payment-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

.stat-icon.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
}

.stat-icon.failed {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.stat-icon.total {
    background: linear-gradient(135deg, #007bff, #6610f2);
}

.stat-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #212529;
}

.stat-info p {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.stat-change.positive {
    color: #28a745;
}

.stat-change.negative {
    color: #dc3545;
}

/* Payment Transaction Table */
.transactions-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.transactions-table table {
    width: 100%;
    border-collapse: collapse;
}

.transactions-table th,
.transactions-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.transactions-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transactions-table tr:hover {
    background: #f8f9fa;
}

.transaction-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.transaction-status.successful {
    background: #d4edda;
    color: #155724;
}

.transaction-status.pending {
    background: #fff3cd;
    color: #856404;
}

.transaction-status.failed {
    background: #f8d7da;
    color: #721c24;
}

.transaction-status.cancelled {
    background: #e2e3e5;
    color: #383d41;
}

.transaction-amount {
    font-weight: 600;
    color: #212529;
}

.transaction-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.transaction-method i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

/* Payment Transactions Page */
.payment-transactions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.header-content h1 i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.transactions-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    margin: 0;
}

.integration-info {
    margin-bottom: 2rem;
}

.integration-info .integration-card {
    max-width: 600px;
}

.transaction-id,
.transaction-reference {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.id-text,
.ref-text {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: #495057;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #e3f2fd;
    color: #1976d2;
}

.transaction-amount {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.transaction-amount .amount {
    font-weight: 600;
    color: #212529;
    font-size: 1rem;
}

.transaction-amount .currency {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
}

.customer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.customer-name {
    font-weight: 500;
    color: #212529;
    font-size: 0.875rem;
}

.customer-email {
    font-size: 0.75rem;
    color: #6c757d;
}

.transaction-date {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.transaction-date .date {
    font-weight: 500;
    color: #212529;
    font-size: 0.875rem;
}

.transaction-date .time {
    font-size: 0.75rem;
    color: #6c757d;
}

.transaction-actions {
    display: flex;
    gap: 0.25rem;
}

.transaction-actions .btn-sm {
    padding: 0.375rem 0.5rem;
    font-size: 0.75rem;
}

/* Transaction Modal */
.transaction-modal {
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.transaction-modal .modal-body {
    padding: 2rem;
}

.transaction-details {
    margin-bottom: 2rem;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-item label {
    font-weight: 500;
    color: #495057;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item span {
    color: #212529;
    font-size: 1rem;
}

.detail-item .amount {
    font-weight: 600;
    color: #28a745;
}

.method-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.method-info i {
    color: var(--primary-color);
    font-size: 1rem;
}

.metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.metadata-item label {
    font-weight: 500;
    color: #495057;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metadata-item span {
    color: #212529;
    font-size: 0.875rem;
    word-break: break-word;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Responsive Design */
@media (max-width: 768px) {
    .transactions-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .transactions-table {
        overflow-x: auto;
    }
    
    .transactions-table table {
        min-width: 800px;
    }
    
    .transaction-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .transaction-modal .modal-body {
        padding: 1rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .metadata-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .payment-transactions-container {
        padding: 1rem;
    }
    
    .header-content h1 {
        font-size: 1.75rem;
    }
    
    .transaction-actions {
        flex-direction: column;
    }
    
    .transaction-actions .btn-sm {
        width: 100%;
        justify-content: center;
    }
}

/* Global Payment Integrations Page */
.global-payment-integrations-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.global-payment-integrations-container .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.global-payment-integrations-container .header h1 {
    margin: 0;
    color: #333;
    font-size: 2rem;
    font-weight: 600;
}

.global-payment-integrations-container .header p {
    margin: 0.5rem 0 0 0;
    color: #666;
    font-size: 1rem;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.integration-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.integration-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.integration-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.provider-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.provider-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.provider-icon.stripe-icon { background: linear-gradient(135deg, #6772e5, #8b6fdf); }
.provider-icon.paypal-icon { background: linear-gradient(135deg, #0070ba, #1546a0); }
.provider-icon.square-icon { background: linear-gradient(135deg, #00c851, #007e33); }
.provider-icon.adyen-icon { background: linear-gradient(135deg, #0abf53, #00994d); }
.provider-icon.braintree-icon { background: linear-gradient(135deg, #ff5f5f, #e53e3e); }
.provider-icon.authorizenet-icon { background: linear-gradient(135deg, #f39c12, #e67e22); }
.provider-icon.klarna-icon { background: linear-gradient(135deg, #ffb3c7, #ff8fa3); }
.provider-icon.alipay-icon { background: linear-gradient(135deg, #1677ff, #0958d9); }
.provider-icon.wechatpay-icon { background: linear-gradient(135deg, #07c160, #06ad56); }
.provider-icon.mercadopago-icon { background: linear-gradient(135deg, #009ee3, #007eb3); }
.provider-icon.paytabs-icon { background: linear-gradient(135deg, #ff6b35, #f7931e); }
.provider-icon.razorpay-icon { background: linear-gradient(135deg, #3399ff, #0066cc); }
.provider-icon.flutterwave-icon { background: linear-gradient(135deg, #f7931e, #e67e22); }
.provider-icon.paystack-icon { background: linear-gradient(135deg, #011b33, #033d6b); }
.provider-icon.default-icon { background: linear-gradient(135deg, #6c757d, #495057); }

.provider-details h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.provider-name {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.country-currency {
    margin: 0;
    font-size: 0.8rem;
    color: #888;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.mode-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.mode-badge.test {
    background: #fff3cd;
    color: #856404;
}

.mode-badge.live {
    background: #d1ecf1;
    color: #0c5460;
}

.supported-methods, .security-standards {
    margin-bottom: 1rem;
}

.supported-methods h4, .security-standards h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
}

.methods-grid, .standards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.method-badge, .standard-badge {
    padding: 0.25rem 0.5rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    font-size: 0.75rem;
    color: #495057;
    font-weight: 500;
}

.card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.card-actions .btn {
    flex: 1;
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

.empty-state h3 {
    margin: 1rem 0 0.5rem 0;
    color: #333;
}

.empty-state p {
    margin: 0 0 2rem 0;
    color: #666;
}

/* Payment Modal */
.payment-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.payment-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 1.5rem;
}

.payment-modal .modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.payment-modal .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.payment-modal .close-btn:hover {
    background: #f0f0f0;
}

.payment-modal .form-group {
    margin-bottom: 1.5rem;
}

.payment-modal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.payment-modal label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.payment-modal .form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.payment-modal .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.payment-modal .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    cursor: pointer;
}

.payment-modal .checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.supported-methods-section, .security-standards-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.supported-methods-section h4, .security-standards-section h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.methods-selection, .standards-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.method-checkbox, .standard-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.method-checkbox:hover, .standard-checkbox:hover {
    background: #f8f9fa;
}

.method-checkbox input[type="checkbox"], .standard-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.payment-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .global-payment-integrations-container {
        padding: 1rem;
    }
    
    .global-payment-integrations-container .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .integrations-grid {
        grid-template-columns: 1fr;
    }
    
    .integration-card .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .payment-modal {
        width: 95%;
        margin: 1rem;
    }
    
    .payment-modal .form-row {
        grid-template-columns: 1fr;
    }
    
    .methods-selection, .standards-selection {
        grid-template-columns: 1fr;
    }
}

/* Payment Processing Page */
.payment-processing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.payment-header {
    text-align: center;
    margin-bottom: 3rem;
}

.payment-header h1 {
    color: #333;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.payment-header h1 i {
    color: #007bff;
    margin-right: 0.5rem;
}

.payment-header p {
    color: #666;
    font-size: 1.1rem;
}

.payment-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.payment-form {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.payment-details {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.payment-details h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.amount-display {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.amount-display .currency {
    font-size: 1.2rem;
    color: #666;
    font-weight: 500;
}

.amount-display .amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #007bff;
}

.payment-description p {
    margin: 0.5rem 0;
    color: #555;
}

.payment-methods h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.method-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.method-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.2);
}

.method-card.selected {
    border-color: #007bff;
    background: #f8f9ff;
}

.method-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: white;
    font-size: 1.2rem;
}

.method-info {
    flex: 1;
}

.method-info h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
}

.method-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.method-check {
    color: #28a745;
    font-size: 1.2rem;
}

.payment-form-section {
    margin-top: 2rem;
}

.payment-form-section h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.card-payment-form,
.bank-transfer-form,
.digital-wallet-form,
.regional-payment-form {
    margin-bottom: 2rem;
}

.customer-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.customer-info h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.payment-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.payment-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.security-info,
.supported-providers {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.security-info h4,
.supported-providers h4 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.security-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #555;
    font-size: 0.9rem;
}

.security-info li i {
    color: #28a745;
    font-size: 0.8rem;
}

.providers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.provider-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.provider-badge:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.provider-badge i {
    font-size: 1.5rem;
    color: #007bff;
    margin-bottom: 0.5rem;
}

.provider-badge span {
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    font-weight: 500;
}

/* Success Modal */
.success-modal {
    max-width: 500px;
    width: 90%;
}

.success-modal .modal-header {
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2.5rem;
}

.success-modal h2 {
    color: #28a745;
    margin: 0;
}

.success-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.success-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.transaction-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-item strong {
    color: #333;
}

/* Error Modal */
.error-modal {
    max-width: 500px;
    width: 90%;
}

.error-modal .modal-header {
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

.error-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc3545, #c82333);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2.5rem;
}

.error-modal h2 {
    color: #dc3545;
    margin: 0;
}

.error-content h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.error-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.error-suggestions {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 1rem;
}

.error-suggestions h4 {
    color: #856404;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.error-suggestions ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #856404;
    font-size: 0.85rem;
}

.error-suggestions li {
    margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .payment-processing-container {
        padding: 1rem;
    }
    
    .payment-header h1 {
        font-size: 2rem;
    }
    
    .payment-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .payment-actions .btn {
        width: 100%;
    }
    
    .providers-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
}

@media (max-width: 576px) {
    .payment-header h1 {
        font-size: 1.8rem;
    }
    
    .amount-display .amount {
        font-size: 2rem;
    }
    
    .method-card {
        padding: 0.75rem;
    }
    
    .method-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .method-info h4 {
        font-size: 0.9rem;
    }
    
    .method-info p {
        font-size: 0.8rem;
    }
}

/* Merchant Accounts Page */
.merchant-accounts-container {
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.merchant-accounts-container .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.merchant-accounts-container .header h1 {
    margin: 0;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 600;
}

.merchant-accounts-container .header h1 i {
    margin-right: 0.5rem;
    color: #3498db;
}

.merchant-accounts-container .header p {
    margin: 0.5rem 0 0 0;
    color: #7f8c8d;
    font-size: 1rem;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.account-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.account-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.account-card.active {
    border-color: #27ae60;
}

.account-card.inactive {
    border-color: #e74c3c;
    opacity: 0.7;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.account-info h3 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.25rem;
    font-weight: 600;
}

.account-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.account-type.foencapp {
    background: #3498db;
    color: white;
}

.account-type.builder {
    background: #e67e22;
    color: white;
}

.account-status {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.status-badge.active {
    background: #d5f4e6;
    color: #27ae60;
}

.status-badge.inactive {
    background: #fadbd8;
    color: #e74c3c;
}

.mode-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
}

.mode-badge.live {
    background: #d5f4e6;
    color: #27ae60;
}

.mode-badge.test {
    background: #fef9e7;
    color: #f39c12;
}

.account-details {
    margin-bottom: 1.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 500;
    color: #7f8c8d;
    font-size: 0.875rem;
}

.detail-row .value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.875rem;
}

.account-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.account-actions .btn {
    flex: 1;
    min-width: 80px;
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.empty-state i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    color: #7f8c8d;
    margin-bottom: 2rem;
    font-size: 1rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Modal Styles for Merchant Accounts */
.modal-content {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.form-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

.form-section h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    color: #2c3e50;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
}

/* Payout Modal Styles */
.payout-info {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.payout-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
}

.payout-info p {
    margin: 0;
    color: #27ae60;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .merchant-accounts-container {
        padding: 1rem;
    }
    
    .merchant-accounts-container .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .accounts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .account-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .account-actions {
        justify-content: center;
    }
    
    .account-actions .btn {
        flex: none;
        min-width: 100px;
    }
}

/* DYNAMIC_FEATURE: App Type Selector Styles */
.app-type-selector {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.app-type-selector h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.radio-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.radio-label:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.radio-label input[type="radio"] {
    margin-right: 1rem;
    transform: scale(1.2);
}

.radio-text {
    display: flex;
    flex-direction: column;
}

.radio-text strong {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.radio-text small {
    color: #6c757d;
    font-size: 0.875rem;
}

/* DYNAMIC_FEATURE: Dynamic Features Panel Styles */
.dynamic-features-panel {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dynamic-features-panel h4 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.feature-checkbox {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
}

.feature-checkbox:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.feature-checkbox input[type="checkbox"] {
    margin-right: 1rem;
    transform: scale(1.2);
}

.feature-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    width: 2rem;
    text-align: center;
}

.feature-text {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.feature-text strong {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.feature-text small {
    color: #6c757d;
    font-size: 0.875rem;
}

/* DYNAMIC_FEATURE: Backend Configuration Panel Styles */
.backend-config-panel {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.backend-config-panel h4 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1rem;
    font-weight: 600;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.config-grid .form-group {
    margin-bottom: 0;
}

.config-grid label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.config-grid select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* DYNAMIC_FEATURE: Cost Estimation Panel Styles */
.cost-estimation-panel {
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.cost-estimation-panel h4 {
    margin-bottom: 1rem;
    color: #155724;
    font-size: 1rem;
    font-weight: 600;
}

.cost-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #c3e6cb;
}

.cost-item:last-child {
    border-bottom: none;
    padding-top: 1rem;
    border-top: 2px solid #28a745;
    margin-top: 0.5rem;
}

.cost-free {
    color: #28a745;
    font-weight: 600;
}

.cost-dynamic {
    color: #007bff;
    font-weight: 600;
}

.cost-database {
    color: #fd7e14;
    font-weight: 600;
}

.cost-total {
    color: #dc3545;
    font-weight: 700;
}

.cost-item.total {
    font-size: 1.1rem;
}

/* DYNAMIC_FEATURE: Action Buttons Styles */
.action-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.action-buttons .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

/* DYNAMIC_FEATURE: Builder Main Layout */
.builder-main {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 1rem;
    height: calc(100vh - 400px);
    min-height: 500px;
}

/* DYNAMIC_FEATURE: Component Library Styles */
.component-library {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.library-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.library-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

.expand-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.expand-btn:hover {
    color: #495057;
}

.component-list {
    padding: 1rem;
    max-height: calc(100vh - 450px);
    overflow-y: auto;
}

.component-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: grab;
    transition: all 0.2s ease;
    background: #ffffff;
}

.component-item:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.component-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    width: 2rem;
    text-align: center;
}

.component-info {
    flex: 1;
}

.component-name {
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.component-description {
    font-size: 0.875rem;
    color: #6c757d;
}

/* DYNAMIC_FEATURE: Canvas Styles */
.canvas-container {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.canvas {
    padding: 2rem;
    min-height: 100%;
    background: #ffffff;
    transition: all 0.2s ease;
}

.canvas.drag-over {
    background-color: #e3f2fd;
    border: 2px dashed #2196f3;
}

.empty-canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-canvas h3 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-canvas p {
    color: #6c757d;
    font-size: 0.875rem;
}

/* DYNAMIC_FEATURE: Component Wrapper Styles */
.component-wrapper {
    position: relative;
    margin-bottom: 1rem;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.component-wrapper:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.component-controls {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.component-wrapper:hover .component-controls {
    opacity: 1;
}

.component-controls button {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.component-controls button:hover {
    background: #0056b3;
}

/* DYNAMIC_FEATURE: Properties Panel Styles */
.properties-panel {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.panel-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #495057;
}

.properties-content {
    padding: 1rem;
    max-height: calc(100vh - 450px);
    overflow-y: auto;
}

.properties-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #495057;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.5rem;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

/* DYNAMIC_FEATURE: Responsive Design */
@media (max-width: 1200px) {
    .builder-main {
        grid-template-columns: 200px 1fr 250px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .builder-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}

/* DYNAMIC_FEATURE: Animation Classes */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dynamic-features-panel,
.backend-config-panel,
.cost-estimation-panel {
    animation: fadeIn 0.3s ease-out;
}

/* DYNAMIC_FEATURE: Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-static {
    background-color: #d4edda;
    color: #155724;
}

.status-dynamic {
    background-color: #cce5ff;
    color: #004085;
}

.status-hybrid {
    background-color: #fff3cd;
    color: #856404;
}

/* Mobile Sidebar Toggle Button */
.mobile-sidebar-toggle {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1048;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    /* Ensure minimum touch target size for mobile */
    min-width: 44px;
    min-height: 44px;
    /* Improve touch responsiveness */
    touch-action: manipulation;
}

.mobile-sidebar-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.mobile-sidebar-toggle:active {
    transform: scale(0.98);
}

.mobile-sidebar-toggle:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Mobile Close Button */
.mobile-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: none;
    /* Ensure it's visible on mobile */
    position: relative;
    z-index: 1050;
}

    .mobile-close-btn:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
        border-color: rgba(255, 255, 255, 0.4);
    }

    .mobile-close-btn:active {
        transform: scale(0.95);
    }

    .mobile-close-btn:focus {
        outline: 2px solid rgba(255, 255, 255, 0.5);
        outline-offset: 2px;
    }