/* General Body and Container Styles */



#sqz-confirm-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: flex !important; /* Ensure it uses flexbox for centering */
    align-items: center !important; /* Vertically center */
    justify-content: center !important; /* Horizontally center */
    z-index: 99999 !important; /* Make it absolutely top-most for testing */
}
input#sqz-phone {
    direction: rtl ! important;
}

.sqz-btn-generate{
    
    background-color: #f8ab53 ! important;
    color: black ! important;
}
input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    border: 1px solid #ddd  ! important;
    border-radius: 3px;
    padding: .5rem 1rem;
    transition: all .3s;
    width: 100%;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    
    justify-content: center;
    padding-top: 50px;
    margin: 0;
    min-height: 100vh; /* Ensure body takes full height */
}
.sqz-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    margin: 20px auto; /* Add margin for smaller screens, center horizontally */
    box-sizing: border-box; /* Include padding in width */
}

/* Form Steps Progress Bar */
.sqz-form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
    padding: 0 10%; /* Add horizontal padding for steps */
}
.sqz-form-step {
    flex: 1;
    text-align: center;
    color: #ccc;
    position: relative;
    z-index: 1; /* Ensure circles are above the line */
}
.sqz-form-step .sqz-circle {
    width: 35px; /* Slightly larger circles */
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    background-color: #ccc;
    color: #fff;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.sqz-form-step.active .sqz-circle {
    background-color: #f8ab53 ! important;/* Primary blue for active */
    transform: scale(1.1); /* Slightly enlarge active circle */
}
.sqz-form-step.completed .sqz-circle {
    background-color:  #f8ab53 ! important; /* Green for completed steps */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
/*.sqz-form-step.completed .sqz-circle::before {
    content: '✔'; /* Checkmark for completed steps */
    font-size: 1.2em;
    color:white ! important;
}*/
.sqz-form-step div {
    font-size: 0.9em;
    margin-top: 8px;
    word-wrap: break-word; /* Ensure text wraps */
}
/* Progress line */
.sqz-form-steps::before {
    content: '';
    position: absolute;
    top: 17px; /* Align with circle center */
    left: 10%;
    right: 10%;
    height: 4px;
    background-color: #eee; /* Background line */
    z-index: 0;
}
/* Active progress line */
.sqz-form-steps::after {
    content: '';
    position: absolute;
    top: 17px;
    left: 2%;
    height: 4px;
    background-color: #007bff; /* Active line */
    width: var(--progress-width, 0%); /* Controlled by JS */
    transition: width 0.4s ease-in-out;
    z-index: 0;
}


/* Form Content and Fields */
.sqz-form-content {
    display: none;
    padding: 20px 0;
}
.sqz-form-content.active {
    display: block;
}
.sqz-form-header {
    text-align: center;
    color: #ff9a68;
    margin-bottom: 25px;
    font-size: 1.8em;
}
.sqz-form-group {
    margin-bottom: 25px;
}
.sqz-form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}
.sqz-form-input,
.sqz-form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.sqz-form-input:focus,
.sqz-form-textarea:focus {
    border-color: #ff9a68;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}
.sqz-form-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Navigation Buttons */
.sqz-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px; /* Spacing between buttons */
}
.sqz-button {
    padding: 14px 28px !important;
    border: none !important;
    border-radius: 25px !important; /* Rounded pill style */
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: background-color 0.3s ease, transform 0.1s ease !important;
    flex-grow: 1 !important;
    text-align: center !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
    display: inline-block !important;
}

/* Back Button */
.sqz-btn-prev {
    background-color: #e6dccf !important;
    color: #333 !important;
}
.sqz-btn-prev:hover {
    background-color: #d9cbb8 !important;
    transform: translateY(-1px) !important;
}

/* Continue Button */
.sqz-btn-next {
    background-color: #f9a84d !important;
    color: #fff !important;
}
.sqz-btn-next:hover {
    background-color: #e8912d !important;
    transform: translateY(-1px) !important;
}

/* Tabs for Step 4 (Type Selection) */
.sqz-type-selection-tabs { /* Renamed from sqz-final-step-tabs for clarity */
    display: flex;
    flex-wrap: wrap; /* Allow tabs to wrap on smaller screens */
    border-bottom: 2px solid #ddd;
    margin-bottom: 20px;
    gap: 5px; /* Spacing between tab buttons */
}
.sqz-type-selection-tabs .sqz-tab-button {
    padding: 12px 18px;
    cursor: pointer;
    font-size: 1em;
    border: none;
    background-color: transparent;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease, color 0.3s ease;
    flex-grow: 1; /* Allow tabs to grow */
    text-align: center;
}
.sqz-type-selection-tabs .sqz-tab-button:hover {
    color: #ff9a68;
}
.sqz-type-selection-tabs .sqz-tab-button.active {
    border-bottom: 2px solid #ff9a68;
    color: #ff9a68;
    font-weight: 600;
}
/* Tab content styling (applies to all tabs, including Step 4's notes fields) */
.sqz-tab-content {
    display: none;
    padding: 20px 0;
}
.sqz-tab-content.active {
    display: block;
}

/* Specific style for the final generated output textarea on Step 5 */
#sqz-final-generated-output {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    min-height: 250px; /* Larger minimum height */
    margin-bottom: 15px;
    white-space: pre-wrap; /* Preserve whitespace and wrap text */
    font-size: 1.1em; /* Slightly larger font for readability */
}

/* Buttons on Step 5 (Regenerate, Copy, Back, New Content) */
.sqz-results-buttons { /* For Regenerate and Copy */
    justify-content: flex-end;
}
.sqz-btn-regenerate {
    background-color: #ffc107; /* Warning yellow */
    color: #333;
    width: auto; /* Override flex-grow for specific buttons */
    padding: 10px 20px;
    flex-grow: 0; /* Don't grow to fill space */
}
.sqz-btn-regenerate:hover {
    background-color: #e0a800;
}
.sqz-btn-copy {
    background-color: #17a2b8; /* Info blue */
    color: #fff;
    width: auto;
    padding: 10px 20px;
    flex-grow: 0;
}
.sqz-btn-copy:hover {
    background-color: #138496;
}

.sqz-final-nav-buttons { /* For Back to Step 4, New Content, Dashboard */
    justify-content: center; /* Center these buttons */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
.sqz-btn-back-to-step4,
.sqz-btn-new-content,
.sqz-btn-dashboard {
    background-color: #6c757d; /* Grey for general navigation */
    color: #fff;
    flex-basis: auto; /* Allow natural sizing */
    margin: 5px; /* Spacing between buttons when wrapped */
}
.sqz-btn-back-to-step4:hover,
.sqz-btn-new-content:hover,
.sqz-btn-dashboard:hover {
    background-color: #5a6268;
}

/* Dashboard Specific Styles */
.sqz-dashboard-menu {
    margin-bottom: 30px;
    border-bottom: 2px solid #ddd;
}
.sqz-dashboard-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap; /* Allow menu items to wrap */
    justify-content: center; /* Center menu items */
}
.sqz-dashboard-menu li {
    margin: 0 0px;
}
.sqz-dashboard-menu a {
    display: block;
    padding: 15px 20px;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: border-bottom 0.3s ease, color 0.3s ease;
}
.sqz-dashboard-menu a:hover {
    color: #ff9a68;
}
.sqz-dashboard-menu a.active {
    border-bottom: 2px solid #ff9a68;
    color: #ff9a68;
    font-weight: 600;
}
.sqz-dashboard-section {
    display: none;
    padding: 20px 0;
}
.sqz-dashboard-section.active {
    display: block;
}
.sqz-history-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.sqz-history-item h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #007bff;
    font-size: 1.2em;
}
.sqz-history-item p {
    margin-bottom: 10px;
    font-size: 0.9em;
}
.sqz-history-item .sqz-history-actions button {
    margin-right: 10px;
    padding: 8px 15px;
    font-size: 0.9em;
    box-shadow: none; /* Remove redundant shadow */
}

.sqz-loading-overlay {
    display: none; /* Changed from 'display: flex;' to 'display: none;' here, as JS handles showing/hiding it */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;           /* This is key for centering */
    justify-content: center; /* This is key for centering horizontally */
    align-items: center;     /* This is key for centering vertically */
    z-index: 9999; /* Higher z-index to cover everything */
}

/* AI Generation/Large Process Overlay (largeSpinner) */
.sqz-large-spinner-overlay { /* This corresponds to your .sqz-spinner-large in JS usage for large processes */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0 0 0 / 0%);
    display: flex;           /* This is key for centering */
    justify-content: center; /* This is key for centering horizontally */
    align-items: center;     /* This is key for centering vertically */
    z-index: 99999;
}

/* Common spinner animation for the inner rotating part */
@keyframes sqz-spin {
    to { transform: rotate(360deg); }
}

/* Original sqz-spinner, if still in use by anything else */
.sqz-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: #ff9a68;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: sqz-spin 1s linear infinite;
 
}
html, body {
    height: 100%; /* Ensures HTML and Body take up full viewport height */
    margin: 0; /* Remove default body margin */
    padding: 0; /* Remove default body padding */
    overflow-x: hidden; /* Prevent horizontal scrollbar, just in case */
}
/* Larger spinner for generation step (if used directly inside .sqz-large-spinner-overlay) */
.sqz-spinner-large {
    border: 8px solid rgba(0, 0, 0, 0.1);
    border-left-color: #007bff;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: sqz-spin 1s linear infinite;
    /* REMOVED: margin: 50px auto; */
    /* REMOVED: display: none; This should be controlled by the parent overlay */
}

/* Inline Spinner (sqz-inline-spinner) - for text next to it */
.sqz-inline-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: sqz-spin 1s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

.sqz-message-box {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
    z-index: 10000; /* Highest z-index */
    text-align: center;
    max-width: 400px;
    min-width: 250px;
}
.sqz-message-box p {
    margin-bottom: 20px;
    font-size: 1.1em;
}
.sqz-message-box button {
    margin-top: 15px;
    background-color: #007bff;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.sqz-message-box button:hover {
    background-color: #0056b3;
}
.sqz-status-message {
    text-align: center;
    margin-top: 15px;
    font-weight: bold;
}
.sqz-status-message.error {
    color: red;
}
.sqz-status-message.success {
    color: green;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .sqz-container {
        padding: 20px;
    }
    .sqz-form-steps {
        flex-wrap: wrap;
        padding: 0 5%;
    }
    .sqz-form-step {
        flex: none; /* Disable flex growth for steps on small screens */
        width: 20%; /* Adjust width for 5 steps in a row */
        margin-bottom: 15px;
    }
    .sqz-form-steps::before, .sqz-form-steps::after {
        display: none; /* Hide progress line on small screens */
    }
    .sqz-type-selection-tabs { /* Renamed from sqz-final-step-tabs */
        flex-direction: column; /* Stack tabs vertically */
    }
    .sqz-type-selection-tabs .sqz-tab-button {
        border-bottom: none; /* Remove bottom border */
        border-left: 3px solid transparent; /* Use left border as active indicator */
        text-align: left;
    }
    .sqz-type-selection-tabs .sqz-tab-button.active {
        border-bottom: none;
        border-left: 3px solid #007bff;
    }
    .sqz-buttons {
        flex-direction: column; /* Stack buttons vertically */
    }
    .sqz-dashboard-menu ul {
        flex-direction: column;
    }
    .sqz-dashboard-menu li {
        margin: 5px 0;
        width: 100%;
    }
}

/* Add these styles to your ai-content-creator-style.css file */

.sqz-tab-navigation {
    display: flex;
    justify-content: center; /* Center the tabs horizontally */
    margin-bottom: 20px; /* Space between tabs and forms */
    border-bottom: 2px solid #ddd; /* A subtle separator line */
}

.sqz-tab-button {
    background-color: #f0f0f0; /* Light gray background for tabs */
    color: #555; /* Darker text color */
    padding: 12px 25px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px 8px 0 0; /* Rounded top corners */
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 5px; /* Small space between buttons */
    outline: none; /* Remove outline on focus */
}

.sqz-tab-button:hover {
    background-color: #e0e0e0;
}

.sqz-tab-button.active {
    background-color: #0073aa; /* WordPress blue or your brand color */
    color: #fff; /* White text for active tab */
    border-bottom: 2px solid #0073aa; /* Highlight active tab with a border */
}

/* Ensure the form sections themselves don't have conflicting border-tops or margins */
.sqz-form-section {
    padding-top: 20px; /* Add some padding to the top of the form content */
}

/* Status Message Styling */
.sqz-status-message {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-align: center;
}

.sqz-status-message.sqz-success {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green */
    border: 1px solid #c3e6cb;
}

.sqz-status-message.sqz-error {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red */
    border: 1px solid #f5c6cb;
}

.sqz-status-message.sqz-info {
    background-color: #d1ecf1; /* Light blue */
    color: #0c5460; /* Dark blue */
    border: 1px solid #bee5eb;
}

