/* Importing Roboto Mono font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&display=swap');

body {
    font-family: 'Roboto Mono', monospace; /* Apply Roboto Mono as the default font */
}

/* Override Bootstrap-specific components if needed */
.navbar-brand,
.nav-link,
.btn,
.card-title,
.card-text {
    font-family: 'Roboto Mono', monospace; /* Apply Roboto Mono to these components */
}

/* Ensure headings (h1, h2, etc.) use the same font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto Mono', monospace; 
}

/*------------------------ Home Page ---------------------------*/
/* Main Layout */
.home-page {
    font-family: Arial, sans-serif;
    color: #333;
    padding: 20px;
    margin-bottom: 10px;
    background-color: #f7f7f7;
    border-radius: 15px;
}

/* Main Quote */
.main-quote {
    text-align: center;
    margin-bottom: 40px;
}

.main-quote h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    font-weight: 600;
    line-height: 1.4;
}

/* Paragraph inside the quote container */
.main-quote p {
    max-width: 90%; 
    margin: 20px auto;
    padding: 0 20px;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #555;
}

/* Home Description Section */
.home-description {
    text-align: center;
    background-color: #fff;
    border-radius: 15px;
    padding: 40px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

/* Call to Action Button inside Home Description */
.cta-container {
    margin-top: 20px;
}

.check-plans-btn {
    background-color: black;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: 15px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.check-plans-btn:hover {
    background-color: #333;
}

/* Subscription Plans Section */
.subscription-plans h2, .subscription-plans h3 {
    text-align: center;
    font-size: 2rem;
    color: black;
    margin-bottom: 20px;
}

.pricing-section {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px 0;
}

/* Individual Pricing Plan Container */
.pricing-container {
    background-color: #fff;
    padding: 30px;
    width: 30%;
    box-sizing: border-box;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
}

.pricing-header {
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: black;
}

.plan-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.pricing-button {
    padding: 12px 25px;
    background-color: black;
    color: #fff;
    text-decoration: none;
    border-radius: 15px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.pricing-button:hover {
    background-color: #333;
}

/*------------------------ Ticker Search Page ---------------------------*/

.ticker-search {
    padding-top: 20px;
    text-align: left;
}

.ticker-display {
    text-align: center;
    margin: 20px 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    padding-top: 20px;
}

.results-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.toggle {
    text-align: center;
    margin-top: 10px;
}

/* Form Layout */
#search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

#search-bar input,
#search-bar select {
    height: 38px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    background-color: #fff;
    min-width: 120px;
}

#ticker_input {
    max-width: 180px;
}

#period_input {
    max-width: 160px;
}

#report_date_input {
    max-width: 180px;
}

#search-button {
    flex-shrink: 0;
}

#submit-button {
    height: 38px;
    padding: 0 16px;
    border-radius: 15px;
    border: 1px solid #333;
    background-color: transparent;
    color: #000;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#submit-button:hover {
    background-color: #e2e6ea;
}

/* Toggle Button */
#toggle-button {
    height: 38px;
    padding: 0 16px;
    border-radius: 15px;
    border: 1px solid #333;
    background-color: transparent;
    color: #000;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#toggle-button:hover {
    background-color: #e2e6ea;
}

/* Score Panels */
#total-pyquant,
#total-description {
    flex: 1;
    min-height: 325px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#total-pyquant {
    background-color: #f8f9fa;
}

#total-description {
    background-color: #e9ecef;
}

/*------------------------ About Page ---------------------------*/

/* General Styling for the About Page */
.about {
    font-family: 'Arial', sans-serif;
    margin: 0 auto;
    max-width: 900px;
    line-height: 1.6;
    padding: 20px;
    margin-bottom: 10px;
    background-color: #f4f4f4;  /* Added background for better contrast */
    border-radius: 15px;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 2.5rem;
    color: black;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.1rem;
    color: #555555;
}

/* Section Containers */
.about-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    padding: 15px;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Specific Section Styles */
.about-container.issue, .about-container.solution {
    background-color: #f9f9f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.about-container h3 {
    font-size: 1.8rem;
    color: black; /* Brand color */
    margin-bottom: 15px;
}

.about-container p {
    font-size: 1rem;
    color: #333333;
}

/* Text Container */
.text-container {
    flex: 1;
    min-width: 300px; /* Ensures text doesn't get too squeezed on smaller screens */
}

.text-container p {
    margin-bottom: 20px;
}

/* Call-to-Action Button */
.cta-button {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: black;
    color: #ffffff;
    text-decoration: none;
    border-radius: 15px;
    font-weight: bold;
}

.cta-button:hover {
    background-color: #444;  /* Slightly lighter hover color */
    transition: 0.3s ease-in-out;
}

/* Image Container */
.image-container {
    flex: 1;
    text-align: center;
    min-width: 300px;  /* Ensures images don't get too small */
}

.image-container img {
    max-width: 100%;
    border-radius: 15px;
    height: auto;
}

/* Specific Images */
#img-research-problem {
    max-width: 80%;
    padding-left: 0;
}

#img-solution {
    max-width: 80%;
    padding-left: 0;
}


/*------------------------ Profile Page ---------------------------*/

.profile-container {
    display: flex;              
    flex-direction: column;    
    gap: 20px;                  
    width: 100%;                              
    padding: 20px;             
    box-sizing: border-box;
}

#top-profile {
    background-color: #f0f0f0;  
    padding: 10px;
    border-radius: 15px;
    flex: 1;                    
}

#edit-profile-button {
    display: inline-block;
    background-color: #444; 
    color: #fff; 
    /* padding: 8px 16px; */
    text-decoration: none;
    border: 1px solid #555; 
    border-radius: 15px; 
    font-size: 14px;
}

#edit-profile-button:hover {
    background-color: #555;
    border-color: #678;
    color: #f0f0f0; 
}

#cushion {
    padding: 250px;
}

.button-container .btn {
    display: inline-block;
    background-color: #333; 
    color: #fff;
    /* padding: 8px 16px; */
    text-decoration: none;
    border: 1px solid #444;
    border-radius: 15px;
    font-size: 14px;
    margin-right: 8px;
}

.button-container .btn:hover {
    background-color: #444;
    border-color: #555;
    color: #eaeaea; 
}


/*------------------------ Sign In  ---------------------------*/
#sign-in-cushion {
    padding: 80px;
}

/*------------------------ Register  ---------------------------*/
#register-cushion {
    padding: 50px;
}

/*------------------------ Reset Password  ---------------------------*/
#reset-cushion {
    padding: 180px;
}

/*------------------------ Pricing ------------------------*/
.pricing-section {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.plan {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    flex: 1;
}

.plan h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 10px;
}

.plan .description {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    display: none;
    margin-top: 10px;
    text-align: left;
}

.plan .toggle-btn {
    margin-top: 15px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1rem;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

.plan .toggle-btn:hover {
    background-color: #555;
}

.pricing-table-container {
    margin-top: 20px;
    overflow-x: auto;
    padding-bottom: 20px;
}

.pricing-table {
    width: 100%;
    border-radius: 15px;
    border-collapse: collapse;
    font-family: 'Roboto Mono', monospace;
    background-color: #f8f9fa;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pricing-table th,
.pricing-table td {
    padding: 15px;
    text-align: center;
    font-size: 1rem;
    border: none;
}

.pricing-table th {
    background-color: black;
    color: white;
    font-weight: bold;
}

.pricing-table td {
    color: #333;
    background-color: #ffffff;
}

.pricing-table tr:nth-child(even) td {
    background-color: #f8f9fa;
}

.price-row {
    font-weight: bold;
    background-color: #e9ecef;
}

.pricing-table button {
    background-color: black;
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    font-family: 'Roboto Mono', monospace;
    transition: background-color 0.3s ease;
    padding: 10px 20px;
}

.pricing-table button:hover {
    background-color: lightgray;
}

/*-------------------------- Profile Page -----------------------*/
/* Profile Page Layout */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
}

/* Profile Header */
#top-profile {
    width: 100%;
    display: flex;
    justify-content: flex-start; /* Adjusted from space-between for better alignment */
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* Ensure space between header and support section */
}

/* Profile Image */
.profile-image {
    border-radius: 15px; /* Circle the image */
    width: 128px; /* Fixed size */
    height: 128px; /* Fixed size */
    object-fit: cover; /* Maintain aspect ratio and prevent stretching */
    margin-right: 20px;
}

/* Profile Username and Information */
.profile-username {
    font-family: 'Roboto Mono', monospace;
    font-size: 2rem;
    margin-bottom: 10px;
}

.profile-about {
    font-size: 1rem;
    color: #555;
    margin-top: 10px;
}

.profile-last-seen {
    font-size: 1rem;
    color: #888;
}

/* Support Section */
.support-section {
    width: 100%;
    background-color: #f8f9fa;
    padding: 20px;
    margin-top: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.support-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.support-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-buttons .btn {
    background-color: black;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 15px;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.support-buttons .btn:hover {
    background-color: #333; /* Lighter hover effect */
}

.edit-profile {
    width: 100%;
    background-color: #f8f9fa;
    padding: 20px;
    margin-top: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.edit-profile h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.form-group {
    margin-bottom: 5px;
}

.form-group label {
    font-weight: bold;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #ddd;
    font-size: 1rem;
}

.form-group input[type="file"] {
    padding: 5px;
}

.form-group textarea {
    resize: vertical;
}

.btn-success {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.btn-success:hover {
    background-color: black;
}

.api-token-section {
    width: 100%;
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 5px; /* Space before support section */
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.api-token-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.api-token-section p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.api-token-display {
    font-size: 1rem;
    font-weight: bold;
    color: white;
    background-color: black;
    padding: 10px;
    border-radius: 10px;
    word-break: break-all;
    font-family: 'Roboto Mono', monospace; /* Match the font */
}

/* Generate Token Button */
.btn-generate-token {
    background-color: black;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 15px;
    font-family: 'Roboto Mono', monospace; /* Match the font */
    font-size: 1rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-refresh-token {
    background-color: black;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 15px;
    font-family: 'Roboto Mono', monospace; /* Match the font */
    font-size: 1rem;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer; 
}

.btn-generate-token:hover {
    background-color: #333;
}

/*----------------- API Docs ----------------------*/
.api-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.api-section h2 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333;
}

.api-section p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #555;
}

.api-section h3 {
    font-size: 1.4em;
    margin-top: 20px;
    color: #333;
}

.api-section pre {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 15px;
    overflow-x: auto;
    font-size: 1em;
    color: #333;
    line-height: 1.4;
    border: 1px solid #ddd;
}

.api-section code {
    color: #d63384;
    font-family: monospace;
}

.api-section ul {
    margin-left: 20px;
    font-size: 1.1em;
}

.api-section ul li {
    margin-bottom: 10px;
}

.api-section h4 {
    margin-top: 20px;
    font-size: 1.3em;
    color: #333;
}

.api-section pre code {
    font-size: 1em;
    color: #007bff;
}

/*---------------------- SQL Dash --------------------------*/
.sql-notebook-container {
    display: flex;
    margin: 20px;
}

.sidebar {
    width: 25%;
    background-color: #f4f4f4;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sidebar h3 {
    margin-top: 0;
    font-size: 1.5em;
}

.sql-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    background-color: #333;
    color: white;
    font-size: 1.1em;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.sql-btn:hover {
    background-color: #555;
}

.main-content {
    width: 70%;
    padding: 20px;
    margin-left: 20px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.main-content h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
}

#sql-query-input {
    width: 100%;
    height: 250px;
    padding: 10px;
    font-size: 1.1em;
    border-radius: 15px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    resize: none;
}

#output-container {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#output {
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #fff;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #ddd;
}

#output {
    font-family: monospace;
    background-color: #fff;
    padding: 10px;
    border-radius: 15px;
    border: 1px solid #ddd;

    max-height: 400px;    /* limits height */
    overflow: auto;       /* adds scrollbars if needed */
    white-space: nowrap;  /* prevent wrapping inside cells */
}

/* Style the table inside #output */
#output table {
    border-collapse: collapse;
    border-radius: 15px;
    width: 100%;
}

#output th, #output td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

#output th {
    background-color: #f4f4f4;
}

/* ===== MOBILE SEARCH FORM STACKING ===== */

@media (max-width: 768px) {
    /* Override existing search-bar styles for mobile */
    #search-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }
    
    /* Override existing input/select styles for mobile */
    #search-bar input,
    #search-bar select {
        width: 100% !important;
        margin: 0 !important;
        padding: 12px !important;
        font-size: 16px !important;
        min-width: unset !important;
        max-width: none !important;
    }
    
    /* Override specific input max-widths */
    #ticker_input,
    #period_input,
    #report_date_input {
        max-width: none !important;
    }
    
    /* Style the submit button for mobile */
    #search-button {
        width: 100% !important;
        margin-top: 10px !important;
        flex-shrink: unset !important;
    }
    
    #submit-button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 16px !important;
    }
    
    /* Adjust search container for mobile */
    .search-container {
        padding: 15px !important;
    }
    
    /* Make ticker search title more mobile-friendly */
    .ticker-search h1 {
        font-size: 24px !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }
}

/* ===== MOBILE SEARCH FORM STACKING ===== */

@media (max-width: 768px) {
    /* Override existing search-bar styles for mobile */
    #search-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }
    
    /* Override existing input/select styles for mobile */
    #search-bar input,
    #search-bar select {
        width: 100% !important;
        margin: 0 !important;
        padding: 12px !important;
        font-size: 16px !important;
        min-width: unset !important;
        max-width: none !important;
    }
    
    /* Override specific input max-widths */
    #ticker_input,
    #period_input,
    #report_date_input {
        max-width: none !important;
    }
    
    /* Style the submit button for mobile */
    #search-button {
        width: 100% !important;
        margin-top: 10px !important;
        flex-shrink: unset !important;
    }
    
    #submit-button {
        width: 100% !important;
        padding: 12px !important;
        font-size: 16px !important;
    }
    
    /* Adjust search container for mobile */
    .search-container {
        padding: 15px !important;
    }
    
    /* Make ticker search title more mobile-friendly */
    .ticker-search h1 {
        font-size: 24px !important;
        margin-bottom: 20px !important;
        text-align: center !important;
    }
}

/* ===== MOBILE CHART/TEXT ALTERNATING LAYOUT ===== */

@media (max-width: 768px) {
    /* Override results container for mobile stacking */
    .results-container {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 10px !important;
    }
    
    /* ALL sections: Chart first, then description */
    .results-container #total-pyquant {
        order: 1 !important;
        width: 100% !important;
        overflow-x: auto !important;
        text-align: center !important;
    }
    
    .results-container #total-description {
        order: 2 !important;
        padding: 10px !important;
        font-size: 14px !important;
    }
    
    /* Ensure all elements take full width */
    #hidden-sections .results-container #total-pyquant,
    #hidden-sections .results-container #total-description {
        width: 100% !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    #search-bar {
        gap: 8px !important;
    }
    
    #search-bar input,
    #search-bar select,
    #submit-button {
        padding: 10px !important;
        font-size: 15px !important;
    }
    
    .search-container {
        padding: 10px !important;
    }
    
    .ticker-search h1 {
        font-size: 20px !important;
        margin-bottom: 15px !important;
    }
    
    .results-container {
        padding: 5px !important;
        gap: 10px !important;
    }
    
    #total-description {
        font-size: 13px !important;
        padding: 8px !important;
    }
}

/* ===== MOBILE HOME PAGE PRICING SECTION ===== */

@media (max-width: 768px) {
    /* Make pricing section stack vertically on mobile */
    .pricing-section {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        padding: 20px 15px !important;
        align-items: center !important;
    }
    
    /* Make each pricing container full width on mobile */
    .pricing-container {
        width: 100% !important;
        max-width: 350px !important;
        padding: 25px 20px !important;
        margin: 0 !important;
    }
    
    /* Adjust text sizing for mobile */
    .pricing-header {
        font-size: 1.6rem !important;
        margin-bottom: 15px !important;
    }
    
    .pricing-container p {
        font-size: 14px !important;
        margin-bottom: 15px !important;
    }
    
    /* Make buttons more touch-friendly */
    .pricing-button {
        padding: 15px 30px !important;
        font-size: 16px !important;
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Adjust subscription plans title for mobile */
    .subscription-plans h2 {
        font-size: 1.8rem !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }
    
    .subscription-plans h3 {
        font-size: 1.2rem !important;
        text-align: center !important;
        margin-bottom: 30px !important;
    }
    
    /* Ensure proper spacing between sections */
    .home-description {
        margin-bottom: 30px !important;
    }
    
    .subscription-plans {
        padding: 20px 0 !important;
    }
}

@media (max-width: 480px) {
    .pricing-section {
        gap: 25px !important;
        padding: 15px 10px !important;
    }
    
    .pricing-container {
        max-width: 320px !important;
        padding: 20px 15px !important;
    }
    
    .pricing-header {
        font-size: 1.5rem !important;
    }
    
    .pricing-container p {
        font-size: 13px !important;
    }
    
    .subscription-plans h2 {
        font-size: 1.6rem !important;
    }
    
    .subscription-plans h3 {
        font-size: 1.1rem !important;
    }
}

/* ===== MOBILE SQL DASHBOARD ===== */

@media (max-width: 768px) {
    /* Make SQL notebook container stack vertically on mobile */
    footer .container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 10px !important;
    }

    footer .container span {
        width: 100%;
        display: block;
    }

    footer .container span a {
        margin: 0 5px;
    }

    .sql-notebook-container {
        flex-direction: column !important;
        gap: 20px !important;
        padding: 15px !important;
        align-items: stretch !important;
        margin: 0 !important; /* Remove original margin */
    }
    
    /* Sidebar mobile layout - move to top */
    .sidebar {
        width: 100% !important;
        max-width: none !important;
        padding: 15px !important;
        order: 1 !important;
        margin: 0 !important; /* Remove any margins */
        box-sizing: border-box !important;
    }
    
    .sidebar h3 {
        font-size: 1.3rem !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    /* SQL buttons mobile layout - ensure perfect stacking */
    .sql-btn {
        width: 100% !important;
        margin: 0 0 8px 0 !important;
        padding: 12px 15px !important;
        font-size: 14px !important;
        text-align: left !important;
        white-space: normal !important;
        height: auto !important;
        min-height: 44px !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .sql-btn:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Main content mobile layout - FIX THE MARGIN ISSUE */
    .main-content {
        width: 100% !important;
        order: 2 !important;
        margin: 0 !important; /* Remove the margin-left that was causing misalignment */
        padding: 15px !important;
        box-sizing: border-box !important;
    }
    
    .main-content h3 {
        font-size: 1.4rem !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    /* SQL query input mobile layout */
    #sql-query-input {
        width: 100% !important;
        min-height: 120px !important;
        font-size: 14px !important;
        padding: 12px !important;
        margin-bottom: 15px !important;
        box-sizing: border-box !important;
    }
    
    /* Run query button mobile layout */
    #run-query-btn {
        width: 100% !important;
        padding: 15px !important;
        font-size: 16px !important;
        min-height: 44px !important;
        margin-bottom: 20px !important;
        box-sizing: border-box !important;
    }
    
    /* Output container mobile layout */
    #output-container {
        width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        margin-top: 0 !important; /* Remove original margin-top */
    }
    
    #output-container h4 {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
        text-align: center !important;
    }
    
    /* Table mobile layout */
    #output table {
        width: 100% !important;
        font-size: 12px !important;
        overflow-x: auto !important;
    }
    
    #output th,
    #output td {
        padding: 8px 6px !important;
        word-wrap: break-word !important;
        max-width: 120px !important;
    }
}

@media (max-width: 480px) {
    .sql-notebook-container {
        padding: 10px !important;
        gap: 15px !important;
    }
    
    .sidebar {
        padding: 10px !important;
    }
    
    .sidebar h3 {
        font-size: 1.2rem !important;
    }
    
    .sql-btn {
        padding: 10px 12px !important;
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }
    
    .main-content {
        padding: 10px !important;
    }
    
    .main-content h3 {
        font-size: 1.3rem !important;
    }
    
    #sql-query-input {
        min-height: 100px !important;
        font-size: 13px !important;
        padding: 10px !important;
    }
    
    #run-query-btn {
        padding: 12px !important;
        font-size: 15px !important;
    }
    
    #output-container {
        padding: 10px !important;
    }
    
    #output th,
    #output td {
        padding: 6px 4px !important;
        font-size: 11px !important;
        max-width: 100px !important;
    }
}
