/* TraderFlow Custom Styles */

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    font-family: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Focus styles with TraderFlow primary color */
.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 #00968A;
    outline: none;
}

/* TraderFlow color variables for compatibility */
:root {
    --traderflow-primary: #00968A;
    --traderflow-success: #04A24C;
    --traderflow-error: #E21C3D;
    --traderflow-warning: #F5A800;
}

/* Modern Pricing Card Styles */
.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-button {
    background: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    transition: all 0.3s ease;
}

    .gradient-button:hover {
        background: linear-gradient(135deg, #6d28d9 0%, #db2777 100%);
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(124, 58, 237, 0.3);
    }

.best-value-badge {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-block;
}

.pricing-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border: 2px solid #4c1d95;
    transition: all 0.3s ease;
}

    .pricing-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(124, 58, 237, 0.2);
        border-color: #7c3aed;
    }

.checkmark-icon {
    color: #a855f7;
    font-size: 1.25rem;
    margin-right: 0.75rem;
    font-weight: bold;
}

.feature-item {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
}

/* Register Page Refresh */
.tf-register-shell {
    padding: 2px;
    border-radius: 32px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 40%, #14b8a6 100%);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.tf-register-card {
    border-radius: 30px;
    padding: 3rem 2.5rem;
    background: rgba(5, 7, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(18px);
}

.tf-input-label {
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.tf-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 22, 36, 0.75);
    padding: 0.95rem 1.1rem;
    color: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.tf-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.tf-input:focus {
    outline: none;
    border-color: rgba(236, 72, 153, 0.8);
    box-shadow: 0 0 0 2px rgba(236, 72, 153, 0.15);
}

.tf-register-btn {
    border-radius: 16px;
    padding: 1.1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 50%, #14b8a6 100%);
    color: #fff;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: 0 25px 45px rgba(107, 33, 168, 0.35);
}

.tf-register-btn:hover {
    transform: translateY(-2px) scale(1.01);
    filter: brightness(1.05);
}

/* Feature Cards */
.tf-feature-card {
    display: flex;
    gap: 1.75rem;
    border-radius: 26px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), rgba(15, 23, 42, 0.95));
    box-shadow: 0 25px 45px rgba(6, 8, 20, 0.65);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.tf-feature-card:hover {
    transform: translateY(-6px);
    border-color: rgba(236, 72, 153, 0.4);
}

.tf-feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Documentation Styles */
.doc-content {
    color: #e5e7eb;
    line-height: 1.75;
}

/* Typography */
.doc-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    font-family: 'Lexend', sans-serif;
    border-bottom: 2px solid rgba(0, 150, 138, 0.3);
    padding-bottom: 0.5rem;
}

.doc-content h1:first-child {
    margin-top: 0;
}

.doc-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-family: 'Lexend', sans-serif;
}

.doc-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.doc-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f3f4f6;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.doc-content p {
    margin-bottom: 1.25rem;
}

/* Links */
.doc-content a {
    color: #00968A;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.doc-content a:hover {
    color: #39D2C0;
    text-decoration: underline;
}

/* Lists */
.doc-content ul,
.doc-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.75rem;
}

.doc-content li {
    margin-bottom: 0.5rem;
}

.doc-content ul {
    list-style-type: disc;
}

.doc-content ul ul {
    list-style-type: circle;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.doc-content ol {
    list-style-type: decimal;
}

/* Code Blocks */
.doc-content code {
    background-color: rgba(15, 22, 36, 0.8);
    color: #ec4899;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    font-family: 'Courier New', Courier, monospace;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.doc-content pre {
    background-color: rgba(15, 22, 36, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.doc-content pre code {
    background-color: transparent;
    color: #a5f3fc;
    padding: 0;
    border: none;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Tables */
.doc-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background-color: rgba(31, 41, 55, 0.5);
    border-radius: 0.5rem;
    overflow: hidden;
}

.doc-content thead {
    background-color: rgba(0, 150, 138, 0.2);
}

.doc-content th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 2px solid rgba(0, 150, 138, 0.5);
}

.doc-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-content tr:last-child td {
    border-bottom: none;
}

.doc-content tbody tr:hover {
    background-color: rgba(0, 150, 138, 0.1);
}

/* Blockquotes (for warnings, notes, etc.) */
.doc-content blockquote {
    border-left: 4px solid #00968A;
    background-color: rgba(0, 150, 138, 0.1);
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

.doc-content blockquote p:last-child {
    margin-bottom: 0;
}

.doc-content blockquote strong:first-child {
    color: #00968A;
    display: block;
    margin-bottom: 0.5rem;
}

/* Horizontal Rules */
.doc-content hr {
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0;
}

/* Images */
.doc-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Strong/Bold */
.doc-content strong {
    font-weight: 600;
    color: #ffffff;
}

/* Emphasis/Italic */
.doc-content em {
    font-style: italic;
    color: #d1d5db;
}

/* Keyboard keys */
.doc-content kbd {
    background-color: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    padding: 0.1rem 0.4rem;
    font-size: 0.875em;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Smooth scroll behavior for anchor links */
html {
    scroll-behavior: smooth;
}

/* Documentation-specific spacing */
.doc-content > *:first-child {
    margin-top: 0;
}

.doc-content > *:last-child {
    margin-bottom: 0;
}

/* Sidebar Menu Styles */
#sidebarMenu {
    display: block !important;
    visibility: visible !important;
}

.sidebar .navbar-nav {
    display: flex !important;
    flex-direction: column;
}

/* Account Settings Modernization */
.glass-card {
    border-radius: 28px;
    padding: 2.5rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(22px);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.download-tile {
    border-radius: 24px;
    padding: 1.75rem;
    background: rgba(12, 18, 32, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.download-tile:hover {
    transform: translateY(-4px);
    border-color: rgba(57, 210, 192, 0.6);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.45);
}

.download-tile--disabled {
    opacity: 0.7;
    border-style: dashed;
    border-color: rgba(148, 163, 184, 0.25);
}

.info-banner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(57, 210, 192, 0.3);
    background: rgba(0, 150, 138, 0.12);
}

.copy-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(8, 12, 24, 0.85);
}

.copy-input input {
    border: none;
    background: transparent;
    color: #fff;
    flex: 1;
    font-size: 0.95rem;
    font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

.copy-input input:focus {
    outline: none;
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.45rem 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.ghost-btn:hover {
    border-color: rgba(57, 210, 192, 0.7);
    color: #39D2C0;
}

.ghost-btn.copied {
    background: rgba(4, 162, 76, 0.2);
    border-color: rgba(4, 162, 76, 0.7);
    color: #4ADE80;
}

.detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.detail-tile {
    border-radius: 20px;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.12);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-label {
    text-transform: uppercase;
    letter-spacing: 0.35em;
    font-size: 0.65rem;
    color: rgba(226, 232, 240, 0.55);
    margin-bottom: 0.35rem;
}

.detail-value {
    font-size: 1rem;
    color: #f8fafc;
    font-weight: 500;
    word-break: break-word;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.9rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.status-pill--success {
    background: rgba(4, 162, 76, 0.18);
    color: #4ADE80;
    border-color: rgba(4, 162, 76, 0.5);
}

.status-pill--warning {
    background: rgba(245, 168, 0, 0.2);
    color: #FBD38D;
    border-color: rgba(245, 168, 0, 0.5);
}

.status-pill--danger {
    background: rgba(226, 28, 61, 0.18);
    color: #F87171;
    border-color: rgba(226, 28, 61, 0.5);
}

.status-pill--info {
    background: rgba(28, 68, 148, 0.2);
    color: #93C5FD;
    border-color: rgba(28, 68, 148, 0.5);
}

.status-pill--muted {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.35);
}

.alert-card {
    display: flex;
    gap: 0.75rem;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.04);
}

.alert-card--info {
    border-color: rgba(57, 210, 192, 0.4);
    background: rgba(0, 150, 138, 0.12);
    color: #E0F2F1;
}

.alert-card--warning {
    border-color: rgba(245, 168, 0, 0.35);
    background: rgba(245, 168, 0, 0.12);
    color: #FEEBC8;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 16px;
    padding: 0.95rem 1.25rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    background: linear-gradient(120deg, #00968A, #39D2C0);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    text-align: center;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 35px rgba(0, 150, 138, 0.25);
}

.cta-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.cta-btn--ghost {
    background: transparent;
    border: 1px dashed rgba(226, 232, 240, 0.4);
    color: #E2E8F0;
}

.cta-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cta-btn--danger {
    background: linear-gradient(120deg, #E21C3D, #F97373);
    border-color: rgba(226, 28, 61, 0.5);
}

.glass-modal {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(11, 16, 28, 0.95);
    box-shadow: 0 45px 90px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(20px);
}
