/* AnonQuick Light Theme */

:root {
    --aq-bg: #f0f4f8;
    --aq-dark: #ffffff;
    --aq-card: #ffffff;
    --aq-border: #c5d3e0;
    --aq-text: #2c3e50;
    --aq-text-muted: #5a7184;
    --aq-primary: #3a6ea5;
    --aq-secondary: #5bc0eb;
    --aq-accent: #7dd3f0;
    --aq-success: #10b981;
    --aq-warning: #f59e0b;
    --aq-danger: #ef4444;
    --aq-gradient: linear-gradient(135deg, #3a6ea5 0%, #5bc0eb 100%);
    --aq-gradient-hover: linear-gradient(135deg, #2c5a8c 0%, #4ab0db 100%);
    --aq-radius: 12px;
    --aq-radius-lg: 16px;
    --aq-shadow: 0 1px 3px rgba(58,110,165,0.08), 0 4px 12px rgba(58,110,165,0.05);
    --aq-shadow-lg: 0 4px 20px rgba(58,110,165,0.12);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--aq-bg);
    color: var(--aq-text);
    line-height: 1.6;
}

/* Override Bootstrap dark theme */
[data-bs-theme="dark"] {
    --bs-body-bg: var(--aq-bg);
    --bs-body-color: var(--aq-text);
    --bs-border-color: var(--aq-border);
}

.navbar, .dropdown-menu, .modal-content, .card {
    background: var(--aq-card) !important;
    color: var(--aq-text) !important;
}

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

/* Gradient Text */
.gradient-text {
    background: var(--aq-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn-gradient {
    background: var(--aq-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--aq-radius);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(58, 110, 165, 0.3);
}

.btn-gradient:hover {
    background: var(--aq-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 110, 165, 0.4);
    color: white;
}

.btn-glass {
    background: rgba(58, 110, 165, 0.08);
    border: 1px solid var(--aq-border);
    color: var(--aq-primary);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: var(--aq-radius);
    transition: all 0.3s ease;
}

.btn-glass:hover {
    background: rgba(58, 110, 165, 0.15);
    border-color: var(--aq-primary);
    color: var(--aq-primary);
}

/* Cards */
.card-modern {
    background: var(--aq-card);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    box-shadow: var(--aq-shadow);
    transition: all 0.3s ease;
}

.card-modern .card-body {
    padding: 1.5rem;
}

.card-modern:hover {
    box-shadow: var(--aq-shadow-lg);
}

/* Sidebar Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--aq-card);
    border-right: 1px solid var(--aq-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0,0,0,0.03);
}

.sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--aq-border);
}

.sidebar-brand-icon {
    width: 40px;
    height: 40px;
    background: var(--aq-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.sidebar-brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--aq-text);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

.sidebar-section {
    margin-bottom: 24px;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--aq-text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--aq-text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: rgba(58, 110, 165, 0.08);
    color: var(--aq-primary);
}

.sidebar-link.active {
    background: rgba(58, 110, 165, 0.12);
    color: var(--aq-primary);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
    font-size: 15px;
}

.sidebar-user {
    padding: 16px;
    border-top: 1px solid var(--aq-border);
    background: var(--aq-bg);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.sidebar-user-avatar-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--aq-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.sidebar-user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--aq-text);
}

.sidebar-user-role {
    font-size: 12px;
    color: var(--aq-text-muted);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    background: var(--aq-bg);
}

/* Mobile Sidebar */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

.sidebar-toggle {
    background: var(--aq-card);
    border: 1px solid var(--aq-border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--aq-text);
}

/* Stat Cards */
.stat-card {
    background: var(--aq-card);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    padding: 24px;
    box-shadow: var(--aq-shadow);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card:hover {
    box-shadow: var(--aq-shadow-lg);
    transform: translateY(-2px);
}

.stat-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.stat-card-content {
    flex: 1;
}

.stat-card-icon.primary {
    background: rgba(58, 110, 165, 0.1);
    color: var(--aq-primary);
}

.stat-card-icon.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--aq-success);
}

.stat-card-icon.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--aq-warning);
}

.stat-card-icon.info {
    background: rgba(14, 165, 233, 0.1);
    color: var(--aq-secondary);
}

.stat-card-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--aq-text);
    margin-bottom: 4px;
}

.stat-card-label {
    font-size: 13px;
    color: var(--aq-text-muted);
    font-weight: 500;
}

/* Tables */
.table-modern {
    border-radius: var(--aq-radius);
    overflow: hidden;
}

.table-modern .table {
    margin-bottom: 0;
}

.table-modern th {
    background: var(--aq-bg);
    color: var(--aq-text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--aq-border);
    padding: 12px 16px;
}

.table-modern td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--aq-border);
    vertical-align: middle;
    color: var(--aq-text);
}

.table-modern tr:last-child td {
    border-bottom: none;
}

.table-modern tbody tr:hover {
    background: rgba(58, 110, 165, 0.03);
}

/* Badges */
.badge-modern {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-modern.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--aq-success);
}

.badge-modern.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--aq-danger);
}

.badge-modern.warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--aq-warning);
}

.badge-modern.primary {
    background: rgba(58, 110, 165, 0.1);
    color: var(--aq-primary);
}

/* Method Badges for API */
.method-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Fira Code', monospace;
}

.method-badge.get { background: rgba(16, 185, 129, 0.1); color: var(--aq-success); }
.method-badge.post { background: rgba(58, 110, 165, 0.1); color: var(--aq-primary); }
.method-badge.put { background: rgba(245, 158, 11, 0.1); color: var(--aq-warning); }
.method-badge.delete { background: rgba(239, 68, 68, 0.1); color: var(--aq-danger); }

/* Form Controls */
.form-control-modern {
    background: var(--aq-bg);
    border: 1px solid var(--aq-border);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--aq-text);
    transition: all 0.2s ease;
}

.form-control-modern:focus {
    background: var(--aq-card);
    border-color: var(--aq-primary);
    box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.15);
    outline: none;
}

.form-control-modern::placeholder {
    color: var(--aq-text-muted);
}

/* Hero Section */
.hero-section {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, var(--aq-card) 0%, var(--aq-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(58, 110, 165, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(58, 110, 165, 0.1);
    color: var(--aq-primary);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(58, 110, 165, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--aq-text);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--aq-text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

/* Code Block */
.code-block {
    background: #1e293b;
    border-radius: var(--aq-radius-lg);
    overflow: hidden;
    box-shadow: var(--aq-shadow-lg);
}

.code-block-header {
    background: #0f172a;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-block-dots {
    display: flex;
    gap: 6px;
}

.code-block-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #334155;
}

.code-block-dots span:first-child { background: #ef4444; }
.code-block-dots span:nth-child(2) { background: #f59e0b; }
.code-block-dots span:nth-child(3) { background: #10b981; }

.code-block pre {
    margin: 0;
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: auto;
}

/* Workflow Steps */
.workflow-step {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--aq-card);
    border-radius: var(--aq-radius-lg);
    border: 1px solid var(--aq-border);
    box-shadow: var(--aq-shadow);
    height: 100%;
}

.workflow-step-number {
    width: 48px;
    height: 48px;
    background: var(--aq-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.workflow-step-content h4 {
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--aq-text);
}

.workflow-step-content p {
    color: var(--aq-text-muted);
    margin: 0;
    font-size: 14px;
}

/* Feature Cards */
.feature-card {
    background: var(--aq-card);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    padding: 32px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--aq-shadow);
}

.feature-card:hover {
    border-color: var(--aq-primary);
    transform: translateY(-4px);
    box-shadow: var(--aq-shadow-lg);
}

.feature-card-icon {
    width: 56px;
    height: 56px;
    background: rgba(58, 110, 165, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--aq-primary);
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--aq-text);
}

.feature-card-desc {
    color: var(--aq-text-muted);
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* Pricing Cards */
.pricing-card {
    background: var(--aq-card);
    border: 1px solid var(--aq-border);
    border-radius: var(--aq-radius-lg);
    padding: 32px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--aq-shadow);
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--aq-shadow-lg);
}

.pricing-card.featured {
    border-color: var(--aq-primary);
    box-shadow: 0 0 0 1px var(--aq-primary), var(--aq-shadow-lg);
}

.pricing-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--aq-gradient);
    color: white;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--aq-text-muted);
    margin-bottom: 16px;
}

.pricing-card-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--aq-text);
    margin-bottom: 24px;
}

.pricing-card-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--aq-text-muted);
}

.pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    text-align: left;
}

.pricing-card-features li {
    padding: 10px 0;
    color: var(--aq-text-muted);
    font-size: 14px;
    border-bottom: 1px solid var(--aq-border);
}

.pricing-card-features li:last-child {
    border-bottom: none;
}

.pricing-card-features i {
    color: var(--aq-success);
    margin-right: 10px;
}

/* Footer override for light theme */
footer {
    background: var(--aq-card) !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--aq-text-muted);
}

/* Form elements in light theme */
.form-control, .form-select {
    background: #ffffff;
    border-color: var(--aq-border);
    color: var(--aq-text);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-control:focus, .form-select:focus {
    background: #ffffff;
    border-color: var(--aq-primary);
    color: var(--aq-text);
    box-shadow: 0 0 0 3px rgba(58, 110, 165, 0.15);
}

/* Better card contrast */
.card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-label {
    color: var(--aq-text);
}

/* Alerts */
.alert {
    border-radius: var(--aq-radius);
    border: 1px solid var(--aq-border);
}

/* Modal styling for light theme */
.modal-content {
    border-radius: var(--aq-radius-lg);
}

/* Dropdown menu */
.dropdown-menu {
    border-radius: var(--aq-radius);
    box-shadow: var(--aq-shadow-lg);
    border: 1px solid var(--aq-border);
}

.dropdown-item {
    color: var(--aq-text);
}

.dropdown-item:hover {
    background: rgba(58, 110, 165, 0.08);
    color: var(--aq-primary);
}

/* Nav links */
.nav-link {
    color: var(--aq-text-muted);
}

.nav-link:hover {
    color: var(--aq-primary);
}

/* Table styling */
.table {
    color: var(--aq-text);
}

.table > thead {
    color: var(--aq-text-muted);
}

.table > :not(caption) > * > * {
    background-color: transparent;
    border-bottom-color: var(--aq-border);
}

/* Card backgrounds */
.card {
    background: var(--aq-card);
    border-color: var(--aq-border);
}

.card-header {
    background: var(--aq-bg);
    border-bottom-color: var(--aq-border);
}

/* Input groups */
.input-group-text {
    background: var(--aq-bg);
    border-color: var(--aq-border);
    color: var(--aq-text-muted);
}

/* Code elements */
code {
    color: var(--aq-primary);
    background: rgba(58, 110, 165, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Button outlines */
.btn-outline-secondary {
    border-color: var(--aq-border);
    color: var(--aq-text-muted);
}

.btn-outline-secondary:hover {
    background: var(--aq-bg);
    border-color: var(--aq-border);
    color: var(--aq-text);
}

.btn-outline-danger {
    border-color: var(--aq-danger);
    color: var(--aq-danger);
}

.btn-outline-danger:hover {
    background: var(--aq-danger);
    color: white;
}

/* Progress bars */
.progress {
    background: var(--aq-bg);
}

/* List groups */
.list-group-item {
    background: var(--aq-card);
    border-color: var(--aq-border);
    color: var(--aq-text);
}

/* Badge colors */
.badge.bg-success { background: var(--aq-success) !important; }
.badge.bg-danger { background: var(--aq-danger) !important; }
.badge.bg-warning { background: var(--aq-warning) !important; color: white !important; }
.badge.bg-primary { background: var(--aq-primary) !important; }
.badge.bg-secondary { background: var(--aq-text-muted) !important; }

/* Navbar-toggler fix */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(100, 116, 139, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Tab styling */
.nav-tabs {
    border-bottom-color: var(--aq-border);
}

.nav-tabs .nav-link {
    color: var(--aq-text-muted);
}

.nav-tabs .nav-link:hover {
    border-color: var(--aq-border);
}

.nav-tabs .nav-link.active {
    background: var(--aq-card);
    border-color: var(--aq-border);
    border-bottom-color: var(--aq-card);
    color: var(--aq-text);
}

/* Accordion */
.accordion-item {
    background: var(--aq-card);
    border-color: var(--aq-border);
}

.accordion-button {
    background: var(--aq-card);
    color: var(--aq-text);
}

.accordion-button:not(.collapsed) {
    background: var(--aq-bg);
    color: var(--aq-primary);
}

/* Close button */
.btn-close {
    filter: invert(0.5);
}

/* Workflow Carousel */
#workflowCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--aq-text-muted);
    opacity: 0.5;
}

#workflowCarousel .carousel-indicators button.active {
    background-color: var(--aq-primary);
    opacity: 1;
}

#workflowCarousel .carousel-control-prev-icon,
#workflowCarousel .carousel-control-next-icon {
    filter: invert(0.5);
}

#workflowCarousel .code-block {
    min-height: 340px;
}
