/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f5f5f5;
}

/* Container Layout */
.container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: 160px;
    background-color: #1976D2;
    color: white;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.logo {
    padding: 30px 20px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.sidebar nav {
    display: flex;
    flex-direction: column;
}

.nav-link {
    padding: 15px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Navigation Groups (Collapsible) */
.nav-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-group-header {
    padding: 15px 20px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.nav-group-header:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.nav-chevron {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.nav-chevron.expanded {
    transform: rotate(180deg);
}

.nav-group-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 0, 0, 0.15);
}

.nav-group-items.expanded {
    max-height: 200px;
}

.nav-sublink {
    padding: 14px 20px 14px 35px !important;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    display: block;
}

.nav-sublink:last-child {
    border-bottom: none !important;
}

.nav-sublink:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Navigation Main - grows to push nav-bottom to bottom */
.nav-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Navigation Separator - visual divider between work tools and stats */
.nav-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    margin: 10px 15px;
}

/* Navigation Bottom - Billing and Logout at bottom */
.nav-bottom {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-bottom .nav-link {
    display: block;
    border-bottom: none;
    text-align: center;
}

/* My List Count Badge */
.nav-count-badge {
    background-color: #4CAF50;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* Sidebar Logout Button */
.sidebar-logout {
    display: block !important;
    margin: 15px auto;
    padding: 10px 20px;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background-color: white;
}

/* Header */
.header {
    padding: 20px 30px;
    background-color: white;
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 20px;
    font-weight: normal;
    color: #333;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

/* Buttons */
.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

/* Filter Management Group */
/* Default state (collapsed/hidden): Red for "Expand" */
.btn-collapse {
    background-color: #f44336;
    color: white;
}

.btn-collapse:hover {
    background-color: #da190b;
}

/* Expanded state (visible): Green for "Collapse" */
.btn-collapse.expanded {
    background-color: #4CAF50;
}

.btn-collapse.expanded:hover {
    background-color: #45a049;
}

.btn-filter-primary {
    background-color: #4CAF50;
    color: white;
}

.btn-filter-primary:hover {
    background-color: #45a049;
}

.btn-reset {
    background-color: #666;
    color: white;
}

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

.btn-filter-secondary {
    background-color: #81C784;
    color: white;
}

.btn-filter-secondary:hover {
    background-color: #66BB6A;
}

/* Preset Management Group (Page background with black text) */
.btn-preset-primary,
.btn-preset-secondary {
    background-color: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
}

.btn-preset-primary:hover,
.btn-preset-secondary:hover {
    background-color: #e8e8e8;
    border-color: #bbb;
}

/* Help Group (Blue) */
.btn-help {
    background-color: #1976D2;
    color: white;
}

.btn-help:hover {
    background-color: #1565C0;
}

/* Button Divider */
.btn-divider {
    display: inline-block;
    width: 1px;
    height: 24px;
    background-color: #ccc;
    margin: 0 8px;
    vertical-align: middle;
}

.btn-logout {
    background-color: #f44336;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-logout:hover {
    background-color: #da190b;
}

/* Message Panel */
.message-panel {
    padding: 12px 30px;
    background-color: #fff9c4;
    border-bottom: 1px solid #f0e68c;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #333;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out, padding 0.3s ease-out;
    max-height: 100px;
    min-height: 36px;  /* Prevent layout shift - fits 2 lines of text (13px * 1.4 * 2 ≈ 36px) */
    opacity: 1;
    overflow: hidden;
}

.message-panel.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.message-panel.error {
    background-color: #ffcdd2;
    border-bottom-color: #ef9a9a;
    color: #b71c1c;
}

/* Flash Messages (Django messages) */
.flash-messages {
    padding: 0 30px;
    padding-top: 15px;
}

.flash-message {
    padding: 16px 45px 16px 20px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    border-left-width: 4px;
    border-left-style: solid;
}

.flash-message .flash-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    font-weight: bold;
    opacity: 0.7;
}

.flash-message .flash-close:hover {
    opacity: 1;
}

.flash-message.flash-info {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #90caf9;
    border-left-color: #1565c0;
}

.flash-message.flash-warning {
    background-color: #fff3e0;
    color: #e65100;
    border: 1px solid #ffcc80;
    border-left-color: #e65100;
}

.flash-message.flash-error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
    border-left-color: #c62828;
}

.flash-message.flash-success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-left-color: #2e7d32;
}

/* Filter Section */
.filter-section {
    padding: 20px 30px;
    background-color: #fafafa;
    border-bottom: 2px solid #e0e0e0;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    max-height: 500px;
    opacity: 1;
    overflow: visible;
}

.filter-section.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
}

/* Top Row: Date Filters (LEFT) + Policy Filters (RIGHT) */
.filters-top-row {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* LEFT: Date Filters Section */
.date-filters-section {
    flex: 0 0 auto;
}

.date-filter-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.date-range-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.date-range-label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    padding-top: 22px;
    white-space: nowrap;
}

.date-field-inline {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.date-field-inline label {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    margin-bottom: 0;
}

.date-field-inline .form-select {
    min-width: 140px;
}

/* RIGHT: Policy Filters Section */
.policy-filters-section {
    flex: 1;
    min-width: 0;
}

.policy-filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

/* Bottom Row: Business Filters Section */
.business-filters-section {
    margin-top: 5px;
}

.business-filters-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 15px;
}

/* Search Button Section */
.search-button-section {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    padding: 15px 0;
    background-color: #e3f2fd;
    border-radius: 4px;
}

.btn-search {
    padding: 12px 40px;
    background-color: #1976D2;
    color: white;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    min-width: 200px;
}

.btn-search:hover {
    background-color: #1565C0;
}

.btn-search:active {
    background-color: #0d47a1;
}

/* Form Controls */
.form-select,
.form-input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    background-color: white;
    transition: border-color 0.2s;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: #1976D2;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23333' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    padding-right: 30px;
    appearance: none;
}

/* Results Section */
.results-section {
    flex: 1;
    padding: 20px 30px;
    overflow-y: auto;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    color: #666;
}

.record-count {
    font-weight: 600;
    color: #1976D2;
    background-color: #e3f2fd;
    padding: 4px 12px;
    border-radius: 4px;
}

/* Pagination */
.pagination-container {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border: 2px solid #1976D2;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pagination-info {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-page {
    padding: 8px 16px;
    background-color: #1976D2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-page:hover:not(:disabled) {
    background-color: #1565C0;
}

.btn-page:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.page-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-number {
    min-width: 36px;
    height: 36px;
    padding: 8px 12px;
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    line-height: 20px;
    transition: all 0.2s;
}

.page-number:hover {
    background-color: #e3f2fd;
    border-color: #1976D2;
}

.page-number.active {
    background-color: #1976D2;
    color: white;
    border-color: #1976D2;
}

/* Results Table */
.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;  /* Fixed layout prevents column shifting */
}

.results-table th {
    background-color: #f5f5f5;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    color: #555;
    overflow: hidden;
    text-overflow: ellipsis;
}

.results-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    overflow: hidden;
    text-overflow: ellipsis;
}

.results-table tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.results-table tbody tr:hover {
    background-color: #f9f9f9;
}

.results-table tbody tr.expanded {
    background-color: #fff9c4 !important;
}

/* Column widths for fixed table layout */
.col-mylist { width: 55px; min-width: 55px; white-space: nowrap; }
.col-business-name { width: 28%; }  /* Increased to prevent text wrapping */
.col-address { width: 20%; }
.col-city { width: 9%; }
.col-state { width: 5%; }
.col-zip { width: 7%; }
.col-county { width: 9%; }
.col-status { width: 75px; }  /* Reduced - filter value goes on second line */

/* Status Header Filter */
.status-header {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    white-space: normal;  /* Allow wrapping for two-line format */
    line-height: 1.3;
}

/* Filter value shown below "Status" */
.status-header .filter-value {
    font-size: 12px;
}

.status-header:hover {
    color: #1976D2;
}

.status-header .filter-indicator {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.6;
}

.status-header.filter-active {
    color: #2e7d32;
}

.status-header.filter-inactive {
    color: #c62828;
}

.status-header.filter-active .filter-indicator,
.status-header.filter-inactive .filter-indicator {
    opacity: 1;
}

/* My List Column */
.mylist-col {
    width: 70px;
    text-align: left;  /* Left-aligned like other columns */
}

.mylist-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1976D2;
}

.mylist-checkbox:hover {
    transform: scale(1.1);
}

/* Work Status Column (shared between WC Search and My List) */
.col-work-status {
    width: 55px;
    min-width: 55px;
    text-align: center;
    white-space: nowrap;
}

.status-col {
    text-align: center;
    white-space: nowrap;
    padding: 4px 6px !important;
}

/* Status icons (shared between WC Search and My List) */
.status-icon {
    font-size: 14px;
    margin: 0 1px;
    vertical-align: middle;
}

.status-icon.contacted {
    color: #757575;  /* Gray phone */
}

.status-icon.qualified-yes {
    color: #4caf50;  /* Green checkmark */
}

.status-icon.qualified-no {
    color: #f44336;  /* Red X */
}

.status-icon.has-notes {
    font-size: 12px;  /* Slightly smaller for emoji */
}

.status-icon.archived {
    color: #f44336;  /* Red for archived/do not contact */
}

/* Policy Details Row */
.policy-details-row {
    background-color: #f5f5f5 !important;
}

.policy-details-row:hover {
    background-color: #f5f5f5 !important;
}

.policy-details-cell {
    padding: 15px !important;
}

.policy-details {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow-x: auto;
}

.policy-details table {
    width: max-content;
    min-width: 100%;
    border-collapse: collapse;
}

.policy-details th,
.policy-details td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
}

.policy-details th {
    background-color: #f5f5f5;
    font-weight: 600;
    border-top: 1px solid #ddd;
}

.policy-details tr:last-child td {
    border-bottom: none;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* Responsive */
@media (max-width: 1400px) {
    .policy-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .business-filters-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

@media (max-width: 1200px) {
    .filters-top-row {
        flex-direction: column;
    }

    .date-filters-section {
        width: 100%;
    }

    .policy-filters-section {
        width: 100%;
    }

    .policy-filters-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .business-filters-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }
}

@media (max-width: 900px) {
    .policy-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .business-filters-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .date-filter-row {
        flex-direction: column;
        gap: 15px;
    }

    .policy-filters-grid {
        grid-template-columns: 1fr;
    }

    .business-filters-grid {
        grid-template-columns: 1fr;
    }

    .btn-search {
        min-width: 150px;
        padding: 10px 30px;
    }

    .sidebar {
        width: 60px;
    }

    .logo,
    .nav-link {
        font-size: 12px;
        padding: 10px;
    }
}

/* Custom Autocomplete Dropdown (Generic) */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-wrapper .form-input {
    width: 100%;
}

.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 200px;
    background: white;
    border: 1px solid #aaa;
    border-radius: 4px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 1px;
}

/* Wide dropdown for fields with descriptions (class codes) */
.autocomplete-dropdown.wide {
    min-width: 350px;
}

.autocomplete-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background-color: #e3f2fd;
}

.autocomplete-item:focus {
    background-color: #bbdefb;
    outline: none;
}

/* Results and Subform Container - 75%/25% Split */
.results-subform-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.results-subform-container .results-section {
    flex: 0 0 75% !important;
    overflow-y: auto;
    border-right: 2px solid #e0e0e0;
    padding: 20px 30px;
}

/* Business Subform Panel (25%) */
.business-subform {
    flex: 0 0 25%;
    display: flex;
    flex-direction: column;
    background-color: #fafafa;
    overflow: hidden;
}

.subform-header {
    padding: 12px 15px;
    background-color: #1976D2;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    flex-shrink: 0;
}

.subform-content {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.subform-placeholder {
    text-align: center;
    color: #999;
    padding: 40px 15px;
    font-family: Arial, sans-serif;
    font-style: italic;
}

.subform-error {
    text-align: center;
    color: #d32f2f;
    padding: 40px 15px;
    font-family: Arial, sans-serif;
}

/* Subform Data Display */
.subform-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subform-row {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.subform-row:last-child {
    border-bottom: none;
}

.subform-label {
    font-weight: 600;
    color: #555;
    font-size: 11px;
    margin-bottom: 2px;
    font-family: Arial, sans-serif;
}

.subform-value {
    color: #333;
    font-size: 12px;
    word-break: break-word;
}

.subform-value.status-active {
    color: #2e7d32;
    font-weight: 600;
}

.subform-value.status-inactive {
    color: #d32f2f;
    font-weight: 600;
}

/* Subform Buttons */
.subform-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e0e0e0;
}

.btn-subform {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.btn-verify {
    background-color: #ff9800;
    color: white;
}

.btn-verify:hover {
    background-color: #f57c00;
}

.btn-view-record {
    background-color: #4CAF50;
    color: white;
}

.btn-view-record:hover {
    background-color: #45a049;
}

.btn-subform:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Match Score Badge */
.match-score-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
}

.match-score-high {
    background-color: #c8e6c9;
    color: #2e7d32;
}

.match-score-medium {
    background-color: #fff9c4;
    color: #f57f17;
}

.match-score-low {
    background-color: #ffcdd2;
    color: #c62828;
}

/* Selected Policy Row in Details Table */
.policy-details tr.selected-policy {
    background-color: #e0e0e0 !important;
}

.policy-details tr.selected-policy:hover {
    background-color: #d5d5d5 !important;
}

/* Policy row clickable indicator */
.policy-details tbody tr {
    cursor: pointer;
    transition: background-color 0.2s;
}

.policy-details tbody tr:hover {
    background-color: #f5f5f5;
}

/* Responsive adjustments for subform */
@media (max-width: 1400px) {
    .results-subform-container .results-section {
        flex: 0 0 70%;
    }

    .business-subform {
        flex: 0 0 30%;
    }
}

@media (max-width: 1100px) {
    .results-subform-container {
        flex-direction: column;
    }

    .results-subform-container .results-section {
        flex: 1;
        border-right: none;
        border-bottom: 2px solid #e0e0e0;
    }

    .business-subform {
        flex: 0 0 auto;
        max-height: 300px;
    }
}

/* =============================================================================
   QUICK START GUIDE - Card Carousel Modal
   ============================================================================= */

/* Overlay */
.qs-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 10001;
    justify-content: center;
    align-items: center;
}

.qs-overlay.active {
    display: flex;
}

/* Modal Container */
.qs-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 560px;
    width: 92%;
    overflow: hidden;
    animation: qsSlideIn 0.25s ease-out;
}

@keyframes qsSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header */
.qs-header {
    background: #1976D2;
    color: #fff;
    padding: 14px 20px;
    font-size: 17px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.qs-header-icon {
    margin-right: 6px;
}

.qs-header-close {
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    opacity: 0.85;
    transition: opacity 0.15s;
    background: none;
    border: none;
    color: #fff;
    padding: 0;
}

.qs-header-close:hover {
    opacity: 1;
}

/* Card Track (horizontal slide) */
.qs-body {
    overflow: hidden;
    position: relative;
}

.qs-track {
    display: flex;
    transition: transform 0.3s ease;
}

.qs-card {
    min-width: 100%;
    box-sizing: border-box;
    padding: 28px 28px 20px;
    text-align: center;
}

/* Card Content */
.qs-card-number {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.qs-card-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.qs-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.qs-card-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 14px;
}

.qs-card-tip {
    background: #FFF8E1;
    border-left: 3px solid #ff9800;
    padding: 10px 14px;
    font-size: 13px;
    color: #555;
    text-align: left;
    border-radius: 4px;
}

/* Footer: Dots + Nav Buttons */
.qs-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 14px;
    border-top: 1px solid #eee;
}

.qs-dots {
    display: flex;
    gap: 8px;
}

.qs-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.2s;
}

.qs-dot.active {
    background: #1976D2;
}

.qs-nav {
    display: flex;
    gap: 8px;
}

.qs-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.qs-btn-prev {
    background: #e0e0e0;
    color: #555;
}

.qs-btn-prev:hover {
    background: #d0d0d0;
}

.qs-btn-prev:disabled {
    opacity: 0.4;
    cursor: default;
}

.qs-btn-next {
    background: #1976D2;
    color: #fff;
}

.qs-btn-next:hover {
    background: #1565C0;
}

.qs-btn-next.qs-finish {
    background: #4CAF50;
}

.qs-btn-next.qs-finish:hover {
    background: #388E3C;
}

/* Dismiss checkbox */
.qs-dismiss {
    padding: 8px 20px 14px;
    text-align: center;
    font-size: 12px;
    color: #888;
}

.qs-dismiss label {
    cursor: pointer;
}

.qs-dismiss input {
    margin-right: 4px;
}

/* Quick Start trigger button (header) */
.btn-quick-start {
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-quick-start:hover {
    background-color: #f57c00;
}
