/* Styles for Onboarding Checklist and Guided Tour */

.onboarding-checklist-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background-color: #fff; /* Match card background */
    border: 1px solid #e0e0e0; /* Match card border */
    border-radius: 8px; /* Match card border-radius */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0; /* Remove padding, apply to inner elements */
    z-index: 1000; /* Ensure it's above other content */
    font-family: sans-serif; /* Match base font */
    color: #333;
    transition: transform 0.3s ease-in-out, height 0.3s ease-in-out;
    transform: translateY(0); /* Default state */
    overflow: hidden; /* Needed for collapsing */
}

.onboarding-checklist-container.collapsed {
    /* Adjust transform based on header height + padding */
    transform: translateY(calc(100% - 75px)); /* Approx header height */
}

.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to top */
    padding: 15px 15px 10px 15px; /* Padding for header content */
    cursor: pointer; /* Indicate collapsible */
    background-color: #fff; /* Ensure header has background */
    border-bottom: 1px solid #e0e0e0; /* Separator */
}

.checklist-progress-section {
    flex-grow: 1;
    margin-right: 10px;
}

.checklist-progress-section h3 {
    margin: 0 0 8px 0; /* Space below title */
    font-size: 1.1em;
    color: #333;
    font-weight: 600;
}

.progress-bar-container {
    width: calc(100% - 40px); /* Leave space for percentage */
    height: 8px;
    background-color: #e9ecef; /* Light grey background */
    border-radius: 4px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}

.progress-bar {
    height: 100%;
    width: 0; /* Initial width */
    background-color: #5cb85c; /* Theme green */
    border-radius: 4px;
    transition: width 0.3s ease-in-out;
}

#checklist-progress-percent {
    display: inline-block;
    width: 35px; /* Space for percentage */
    text-align: right;
    font-size: 0.9em;
    font-weight: 600;
    color: #555;
    vertical-align: middle;
    margin-left: 5px;
}

#checklist-toggle {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #555;
    padding: 0 5px; /* Adjust padding */
    margin-top: -2px; /* Align better with title */
}

#checklist-items {
    list-style: none;
    padding: 10px 15px 15px 15px; /* Padding for items */
    margin: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
    max-height: 500px; /* Allow space for items */
    overflow-y: auto; /* Allow scrolling if too many items */
    overflow-x: hidden;
    opacity: 1;
    background-color: #fff;
}

.onboarding-checklist-container.collapsed #checklist-items {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top: none; /* Hide border when collapsed */
}

#checklist-items li {
    display: flex;
    align-items: center;
    padding: 10px 5px; /* Padding inside li */
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

#checklist-items li:last-child {
    border-bottom: none;
}

#checklist-items li:hover {
    background-color: #f8f8f8; /* Slight hover effect */
}

.task-icon {
    font-size: 1.4em; /* Larger icon */
    margin-right: 12px;
    color: #ccc; /* Default grey for pending */
    width: 20px; /* Fixed width for alignment */
    text-align: center;
}

#checklist-items li.completed .task-icon {
    color: #5cb85c; /* Theme green for completed */
    font-family: 'Font Awesome 6 Free'; /* Ensure correct font */
    font-weight: 900; /* Use solid style */
    content: "\f058"; /* Unicode for check-circle */
}

/* Use pseudo-element to display the correct icon */
#checklist-items li .task-icon::before {
    content: "\f111"; /* fa-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 400; /* Use regular style */
}

#checklist-items li.completed .task-icon::before {
    content: "\f058"; /* fa-check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900; /* Use solid style */
}

.task-label {
    flex-grow: 1;
    font-size: 0.95em;
    color: #444;
}

#checklist-items li.completed .task-label {
    text-decoration: line-through;
    color: #888;
}

/* Styles for Locked Checklist Items */
#checklist-items li.locked {
    cursor: not-allowed;
    opacity: 0.6;
}

#checklist-items li.locked .task-icon {
    color: #e0e0e0; /* Very light grey icon */
     /* Optionally add a lock icon if Font Awesome is available */
    /* content: "\f023"; */ /* Unicode for fa-lock */ 
    /* font-family: 'Font Awesome 6 Free'; */
    /* font-weight: 900; */
}

#checklist-items li.locked .task-label {
    color: #aaa; /* Lighter grey text */
    text-decoration: none; /* Ensure no line-through if somehow completed */
}

#checklist-items li.locked:hover {
    background-color: transparent; /* No hover effect for locked items */
}

/* Remove specific link styles */
.checklist-link {
   display: none; /* Hide the old links */
}

/* Start Tour Button - keep existing styles, adjust margin */
#start-tour-btn {
    width: calc(100% - 30px); /* Account for container padding */
    margin: 0 15px 15px 15px; /* Margin inside container */
    padding: 10px;
    background-color: #7a00ff; /* Match header purple */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
    text-align: center;
    display: block;
    box-sizing: border-box; /* Include padding in width */
}

#start-tour-btn:hover {
    background-color: #6000cc; /* Darker purple */
}

/* Shepherd.js theme adjustments (optional, can customize more) */
.shepherd-element {
  border-radius: 8px !important; /* Match app style */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.shepherd-header {
  background-color: #f8f9fa !important;
  padding: 10px 15px !important;
  border-bottom: 1px solid #e0e0e0;
}

.shepherd-title {
    color: #333 !important;
    font-weight: 600 !important;
    font-size: 1.1em !important;
}

.shepherd-cancel-icon {
    color: #888 !important;
}
.shepherd-cancel-icon:hover {
    color: #555 !important;
}

.shepherd-text {
    padding: 15px !important;
    color: #444 !important;
    font-size: 0.95em !important;
}

.shepherd-button {
    background-color: #7a00ff !important; /* Match primary button */
    color: white !important;
    padding: 8px 15px !important;
    border-radius: 4px !important;
    text-transform: none !important;
    font-size: 0.9em !important;
    margin: 0 5px !important;
}

.shepherd-button:hover {
    background-color: #6000cc !important;
}

.shepherd-button.shepherd-button-secondary {
    background-color: #e0e0e0 !important; /* Lighter secondary */
    color: #555 !important;
}

.shepherd-button.shepherd-button-secondary:hover {
    background-color: #ccc !important;
}

/* Ensure it matches other action buttons if .action-button has global styles */
.action-button {
    /* Copy styles from style.css if necessary, or ensure consistency */
}

/* Welcome Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top, slightly above checklist */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity (backdrop) */
    font-family: sans-serif; /* Match base font */
}

.modal-content {
    background-color: #fefefe;
    margin: 8% auto; /* Slightly less top margin */
    padding: 40px 50px; /* Even more padding */
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    width: 85%; /* Slightly wider */
    max-width: 600px; /* Wider max-width */
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px; /* More space below heading */
    color: #333;
    font-size: 1.5em; /* Slightly larger heading */
    font-weight: 600;
    text-align: center; /* Center heading */
}

.modal-content p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: #555;
}

.modal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.modal-content li {
    margin-bottom: 8px;
    color: #555;
}

.modal-content .form-group {
    margin-bottom: 15px;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
}

.modal-content input[type="text"],
.modal-content input[type="tel"] {
    width: 100%;
    padding: 12px; /* More padding in inputs */
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em; /* Slightly larger input font */
}

/* Style for Terms group in Modal */
.modal-terms-group {
    margin-top: 20px; /* Space above terms */
    margin-bottom: 25px; /* Space below terms before button */
    display: flex;
    align-items: center;
}

.modal-terms-group input[type="checkbox"] {
    margin-right: 8px;
    /* Optional: Style checkbox appearance */
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.modal-terms-group label {
    display: inline; /* Keep label next to checkbox */
    margin-bottom: 0; /* Override default label margin */
    font-weight: normal; /* Normal weight for terms text */
    color: #555;
}

.modal-terms-group label a {
    color: #7a00ff; /* Use theme purple for link */
    text-decoration: none;
}

.modal-terms-group label a:hover {
    text-decoration: underline;
}

.modal-button {
    /* display: block; */ /* Remove display block */
    /* float: right; */ /* Remove float */
    display: inline-block; /* Make it inline-block */
    width: auto;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #7a00ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.2s;
}

/* Center the button within the form */
#welcomeForm {
    text-align: center; /* Center inline/inline-block children */
}

.modal-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.modal-button:hover:not(:disabled) {
    background-color: #6000cc;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
}

/* --- Copied/Adapted styles for Modal Address Autocomplete (Corrected) --- */

/* Container for the input and suggestions */
.modal .autocomplete-container {
    position: relative; /* Needed for absolute positioning of suggestions */
}

/* The list of suggestions (Corrected) */
.modal .suggestions-list {
    display: none;
    position: absolute;
    top: 100%; /* Position below the input */
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid #ccc; /* Match border from style.css */
    border-top: none; /* Match border from style.css */
    border-radius: 0 0 4px 4px; /* Match border-radius from style.css */
    max-height: 150px;
    overflow-y: auto;
    z-index: 100; /* Ensure it's above other modal content */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left; /* Explicitly set left alignment */
}

/* Individual suggestion item (Corrected) */
.modal .suggestions-list div {
    padding: 10px;
    cursor: pointer;
    /* background-color: #fff; */ /* Already set on parent */
    border-bottom: 1px solid #eee; /* Lighter border between items */
}
/* Remove bottom border from last item */
.modal .suggestions-list div:last-child {
    border-bottom: none;
}

/* Suggestion item hover effect (Corrected) */
.modal .suggestions-list div:hover {
    background-color: #f0f0f0; /* Match hover from style.css */
}

/* --- End Copied Autocomplete Styles --- */ 