/* ------------------------------------------------------------
   General Styles
   ------------------------------------------------------------ */

   body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000; /* Black background */
    color: #a9a9a9; /* Greyish text */
    /* text-align: center;  Removed - avoid global text alignment */
}

.container {
    padding: 20px;
}

/* ------------------------------------------------------------
   Typography
   ------------------------------------------------------------ */

/* Decrease Navbar Font Size */
.navbar-nav .nav-link {
    font-size: 0.9rem;  /* Adjust as needed */
    color: #a9a9a9; /* Greyish navbar links */
}

/* Decrease Footer Font Size */
.footer .text-muted {
    font-size: 0.8rem;  /* Adjust as needed */
}

.text-muted {
    color: #a9a9a9  !important;
}

.text-custom-grey {
    color: #a9a9a9;
}

/* For left-aligning content inside gettingStarted.html  */
.left-aligned-content {
    text-align: left;
}

/* Typography for the Getting Started Page */
.getting-started h1 {
    font-size: 18px;
    text-align: left;
}

.getting-started h2 {
    font-size: 16px;
    text-align: left;
}

.getting-started h3 {
    font-size: 14px;
    text-align: left;
}

.getting-started h4 {
    font-size: 12px;
    text-align: left;
}

.getting-started p,
.getting-started ul,
.getting-started li {
    text-align: left;
    color: #a9a9a9;
}

/* For bullet points list, adding spaces */
.left-aligned-list {
    text-align: left;
    padding-left: 20px;
}

.left-aligned-list li {
    text-align: left;
}

.motivation {
    font-size: 1.2em;
    color: #a9a9a9;
    text-align: center;
    margin-top: 20px;
    line-height: 1.5;
}

/* ------------------------------------------------------------
   Layout Elements
   ------------------------------------------------------------ */

/* Hero Section */
.hero {
    background-color: #333;
    color: #a9a9a9;
    padding: 50px 20px;
}

/* Services Section */
.service {
    margin: 20px;
    padding: 20px;
    background: #121212;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* display: inline-block;  Remove - Use Bootstrap grid instead */
    /* width: 30%;  Remove - Use Bootstrap grid instead */
    /* min-width: 250px;  Remove - Use Bootstrap grid instead */
    text-align: left;  /* Override body text-align: center for service content */
    color: #a9a9a9;
}

/* Footer */
footer {
    background: #000000;
    color: #a9a9a9;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-top: 1px solid #444444;
}

/* ------------------------------------------------------------
   Call to Action (CTA)
   ------------------------------------------------------------ */
.cta {
    background-color: #ff6600;
    color: #a9a9a9;
    padding: 15px 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    border-radius: 5px;
}

.cta:hover {
    background-color: #cc5500;
}

.call-to-action {
  text-align: center;
  margin-top: 20px;
}

.call-to-action a {
  color: #a9a9a9;
  font-weight: bold;
}

/* ------------------------------------------------------------
   Form Styles
   ------------------------------------------------------------ */

/* General form row styling */
.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px; /* Space between each form row */
}

/* Label styling: position label on the left */
.form-row label {
    width: 25%; /* Label width is 25% of the row */
    margin-right: 10px; /* Space between label and input field */
    color: #a9a9a9;
}

/* Input field styling: make it 60% smaller */
.input-field {
    width: 60%; /* 60% of the container width */
    padding: 5px 10px;
    font-size: 14px;
    background-color: #333333;
    color: #a9a9a9;
    border: 1px solid #444444;
}

/* Center the register button */
.text-center {
    text-align: center;
    margin-top: 20px;
}

/* Center the Register button */
.center-button {
    display: flex;
    justify-content: center;  /* Center the button horizontally */
    margin-top: 20px;  /* Space above the button */
}

/* ------------------------------------------------------------
   Tooltip Styles
   ------------------------------------------------------------ */

/* Style for the tooltip icon: place it to the right of the input box */
.help-tip {
    display: inline-block;
    background: #555555;
    color: #a9a9a9;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px; /* Space between input field and help tip */
    position: relative;
}

/* Tooltip text styling */
.help-tip::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 125%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #a9a9a9;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show tooltip on hover */
.help-tip:hover::after {
    visibility: visible;
    opacity: 1;
}

/* ------------------------------------------------------------
   Documentation Styles (gettingStarted.html)
   ------------------------------------------------------------ */

/* Reusing the layout element, and no need to style the basic elements here */
.getting-started {
    background: #333333;
    padding: 20px;
    border-radius: 5px;
    color: #a9a9a9;
}

.step {
    margin-bottom: 20px;
    color: #a9a9a9;
}

.step h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #a9a9a9;
}

.step ul {
    list-style-type: disc;
    margin-left: 20px;
}

.step li {
    margin-bottom: 5px;
    color: #a9a9a9;
}

.placeholder-screenshot {
    border: 1px dashed #555555;
    padding: 10px;
    margin-top: 5px;
    text-align: center;
    font-style: italic;
    color: #a9a9a9;
    width: 400px;
    height: 300px;
}

.key-advantages ul, .important-notes ul {
    list-style-type: square;
    margin-left: 20px;
}

.javascript-placeholder {
    border: 1px dashed #555555;
    padding: 10px;
    margin-top: 20px;
    text-align: center;
    color: #a9a9a9;
}

.currency-input {
    width: 180px; /* Adjust width for 15-digit numbers */
    text-align: right; /* Align numbers to the right */
    background-color: #333333;
    color: #a9a9a9;
    border: 1px solid #444444;
}

/* static/css/style.css or inside <style> tags */

.message {
    padding: 15px;
    /* margin-bottom: 20px; */ /* Comment out or remove the old value */
    margin-bottom: 15px;      /* Set the desired bottom margin */
    border: 1px solid transparent;
    border-radius: 4px;
    font-weight: bold;
}
  
.message.error {
    background-color: #e6e0f8; /* Light purple background */
    border-color: #d6c9f4;    /* Slightly darker purple border */
    color: #dc3545;          /* Red text color */
}

.message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.message.warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.message.info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}


/* Style the login form container */
.login-form-container {
    max-width: 400px; /* Adjust max-width as needed */
    margin: 40px auto; /* Adds space top/bottom, centers horizontally */
    padding: 20px;
    border: 1px solid #ccc; /* Optional: add a border */
    border-radius: 8px;   /* Optional: rounded corners */
    background-color: #f9f9f9; /* Optional: light background for the form area */
    color: black; /* Add this line to set the text color to black */
}

/* Target the specific login button inside the form */
.login-form-container form button[type="submit"] {
    background-color: #007bff; /* Standard blue color */
    color: white;             /* White text - This remains white for the button */
    border: none;             /* Remove default border */
    padding: 10px 20px;       /* Add some padding */
    border-radius: 5px;       /* Slightly rounded corners */
    cursor: pointer;          /* Indicate it's clickable */
    margin-top: 15px;         /* Add 15px space above the button */
    display: block;           /* Make it a block element */
    width: 100%;              /* Make button full width of container */
}

/* Optional: Add hover effect for the button */
.login-form-container form button[type="submit"]:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Center the heading as well if desired */
.login-form-container h2 {
    text-align: center;
    margin-bottom: 20px;
    /* The color will be inherited from .login-form-container unless overridden */
}

/* Adjust spacing for form elements if using crispy_forms or form.as_p */
.login-form-container form p {
    margin-bottom: 15px; /* Adjust spacing between form fields */
     /* The color will be inherited from .login-form-container unless overridden */
}

/* Center the links below the form */
.login-form-links {
    text-align: center;
    margin-top: 20px;
}
.login-form-links p {
    margin-bottom: 5px;
}

/* Ensure links within the container are also black, overriding default link colors if needed */
.login-form-container a {
    color: black; /* Make links black too */
    /* text-decoration: underline; */ /* Optional: Add underline back if desired */
}


.login-form-container a:visited {
    color: #333; /* Slightly darker black for visited links */
}

.login-form-container a:hover {
    color: #555; /* Grey on hover */
}


/* ... Subscription forms styles ... */

.bg-custom-premium-green {
    background-color: rgb(102, 204, 0) !important; /* Use !important to ensure it overrides Bootstrap if necessary */
    color: #ffffff; /* White text usually works well with bright green */
}

/* --- Styles for Horizontally Scrolling Charts --- */
.chart-scroll-container {
    overflow-x: auto; /* This adds the horizontal scrollbar ONLY when needed */
    width: 100%;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on mobile */
}

/* Optional: Style the scrollbar for dark theme */
.chart-scroll-container::-webkit-scrollbar {
    height: 8px;
}
.chart-scroll-container::-webkit-scrollbar-track {
    background: #2c3034; /* A dark track color */
}
.chart-scroll-container::-webkit-scrollbar-thumb {
    background-color: #6c757d; /* A muted grey for the thumb */
    border-radius: 4px;
}

/* ------------------------------------------------------------
   Dark Theme for Form Elements (Fixes)
   ------------------------------------------------------------ */

/*
 * Fix for Bootstrap's dropdown arrow on dark backgrounds.
 * This replaces the default dark arrow with a white one.
 */
select.form-select.bg-dark {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

/* --- Workflow Diagram Styling --- */
.workflow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 2rem 0; /* Add some vertical spacing */
}

.workflow-row {
    display: flex;
    justify-content: center;
    gap: 4rem; /* Space between parallel nodes */
    width: 100%;
    position: relative; /* Needed for positioning pseudo-elements */
}

.workflow-node {
    border: 2px solid #495057;
    background-color: #212529;
    padding: 1.25rem;
    padding-top: 2rem; /* Make space for the number */
    border-radius: 0.75rem;
    text-align: center;
    text-decoration: none;
    width: 280px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.workflow-row.parallel .workflow-node {
    width: 45%; /* Adjust width for side-by-side items */
    max-width: 320px;
}

.workflow-step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #343a40;
    color: #ced4da;
    border: 2px solid #495057;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 1;
}

.workflow-title { color: #f8f9fa; font-size: 1.1rem; margin-bottom: 0.5rem; }
.workflow-description { color: #adb5bd; font-size: 0.85rem; margin-bottom: 0; }

/* --- Node States --- */
.workflow-node.locked {
    background-color: #2c3034;
    border-color: #495057;
    pointer-events: none;
    cursor: not-allowed;
}
.workflow-node.locked .workflow-title,
.workflow-node.locked .workflow-description { color: #6c757d; }
.workflow-node.locked .workflow-step-number { background-color: #495057; }


.workflow-node.unlocked {
    border-color: #0d6efd; /* Main Blue */
    background-color: #1a2a45;
    cursor: pointer;
}
.workflow-node.unlocked:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(13, 110, 253, 0.2); }
.workflow-node.unlocked .workflow-step-number { background-color: #0d6efd; color: #fff; border-color: #3d8bfd; }

/* Style for the first parallel node */
.workflow-node.unlocked.purple { 
    border-color: #6f42c1; /* Vibrant Purple */
    background-color: #2a1d42; 
}
.workflow-node.unlocked.purple .workflow-step-number { background-color: #6f42c1; border-color: #8c68d1; }
.workflow-node.unlocked.purple:hover { box-shadow: 0 5px 15px rgba(111, 66, 193, 0.2); }

/* MODIFIED: Style for the second parallel node to make it vibrant */
.workflow-node.unlocked.gray { 
    border-color: #0dcaf0; /* Vibrant Teal/Cyan */
    background-color: #112f3c; 
}
.workflow-node.unlocked.gray .workflow-step-number { background-color: #0dcaf0; border-color: #3dd5f3; }
.workflow-node.unlocked.gray:hover { box-shadow: 0 5px 15px rgba(13, 202, 240, 0.2); }

.workflow-node.complete {
    border-color: #198754;
    background-color: #143625;
}
.workflow-node.complete::before {
    content: "\f26a"; /* The character code for the checkmark */
    
    /* --- FIX: Add these lines --- */
    font-family: 'bootstrap-icons';
    font-style: normal;
    font-weight: normal !important; /* !important prevents other styles from making it bold */
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* --- End of FIX --- */

    position: absolute;
    top: 10px;
    right: 10px;
    color: #198754;
    font-size: 1.5rem;
}
.workflow-node.complete .workflow-step-number { background-color: #198754; color: #fff; border-color: #319b67; }

/* --- Final Action Button --- */
.workflow-node.final-action.unlocked.green { border-color: #198754; background-color: #143625; }
.workflow-node.final-action.unlocked.green .workflow-step-number { background-color: #198754; border-color: #319b67; }
.workflow-node.final-action .workflow-step-number { font-size: 1.2rem; }
.workflow-node.final-action:disabled { cursor: not-allowed; }

/* --- Connectors and Arrows --- */
.workflow-connector-row {
    height: 40px;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
}
.workflow-connector {
    width: 2px;
    height: 100%;
    background-color: #495057;
    position: relative;
}

/* Connectors for the parallel step */
.workflow-row.parallel::before {
    content: '';
    position: absolute;
    width: 2px; /* vertical line */
    height: 20px; /* from top of row down to horizontal line */
    background-color: #495057;
    top: -20px; /* above the row */
    left: 27.5%; /* Adjust based on your layout */
}
.workflow-row.parallel::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background-color: #495057;
    top: -20px;
    right: 27.5%; /* Adjust based on your layout */
}
.workflow-connector-row:has(+ .workflow-row.parallel)::before {
    content: '';
    position: absolute;
    width: calc(45% - 2px);
    height: 2px; /* horizontal line */
    background-color: #495057;
    top: 0; /* at the very top of the connector row */
    left: 27.5%;
}

/* Connectors after parallel step */
.workflow-row.parallel + .workflow-connector-row::before,
.workflow-row.parallel + .workflow-connector-row::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 20px;
    background: #495057;
    top: 0;
}
.workflow-row.parallel + .workflow-connector-row::before { left: 27.5%; }
.workflow-row.parallel + .workflow-connector-row::after { right: 27.5%; }

.workflow-row.parallel + .workflow-connector-row > .workflow-connector::before {
    content: '';
    position: absolute;
    width: calc(45% - 2px);
    height: 2px;
    background-color: #495057;
    top: 20px;
    left: calc(-22.5% + 1px);
}

/* --- Arrow at the end --- */
.workflow-connector.arrow::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 10px solid #495057;
}

.workflow-connector-row.final { height: 30px; }

/* --- Add this new CSS at the end of the workflow styles --- */

/* Style for the new circular end node */
.workflow-node.final-node {
    width: 220px; /* Increased from 200px */
    height: 220px; /* Increased from 200px */
    border-radius: 50%; /* This makes it a circle */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none; /* Ensures it is not clickable */
}

.workflow-node.final-node .workflow-step-number {
    position: static; /* Override absolute positioning */
    transform: none;
    margin-bottom: 0.75rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

.workflow-node.final-node .workflow-title {
    font-size: 1rem;
}

.workflow-node.final-node .workflow-description {
    font-size: 0.8rem;
}

/* Remove hover effect from completed final node */
.workflow-node.final-node.complete:hover,
.workflow-node.final-node.unlocked:hover {
    transform: none;
    box-shadow: none;
}