:root {
    --color-primary: #1b3d2f;
    --color-secondary: #d0d2ac;
    --primary-bg: var(--color-primary);
    --text-color: #2f3a36;
    --light-bg-color: #f2fedc;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
}

.cstm-primary-bg {
    background-color: var(--primary-bg);
}
.cstm-primary-border {
    border-color: var(--primary-bg);
}
.cstm-bg-light {
    background-color: var(--light-bg-color);
}

 body {
   font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    background-color: #f0f2f5;
    color: var(--text-color);
 }

 canvas {
     display: block;
     background-color: transparent;
     /* Canvas background will be transparent to show parent div's background */
 }
.btn-primary,
button.swal2-confirm.swal2-styled {
    background: var(--color-primary);
    color: #fff;
    transition: 0.3s;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 4px;
    font-weight: 500;
    border: 1px solid var(--color-primary);
    line-height: normal;
}

.btn-primary:hover,
button.swal2-confirm.swal2-styled:hover {
    background: #fff;
    color: var(--color-primary);
    cursor: pointer;
}

.btn-secondary,
button.swal2-cancel.swal2-styled {
    background: var(--color-secondary);
    color: var(--color-primary);
    transition: 0.3s;
    padding: 10px 16px;
    font-size: 16px;
    border-radius: 4px;
    font-weight: 500;
    line-height: normal;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-secondary);
}

.btn-secondary:hover,
button.swal2-cancel.swal2-styled:hover {
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
 /* Ensure the main container takes full height and width */
 #app-container {
     min-height: 100vh;
     width: 100vw;
     display: flex;
     flex-direction: row;
     /* Changed to row for sidebar layout */
     align-items: flex-start;
     /* Align items to the top for sidebar */
     padding: 1rem;
     /* p-4 */
     box-sizing: border-box;
     /* Soft gradient background */
 }

 @media (min-width: 640px) {

     /* sm:p-8 */
     #app-container {
         padding: 1rem !important;
     }
 }

 /* Sidebar Navigation */
 /* #sidebar-nav {
     top: 1rem;
     width: 240px;
     display: flex;
     flex-shrink: 0;
     position: sticky;
     align-items: center;
     border-radius: 1rem;
     flex-direction: column;
     height: calc(98vh - 2rem);
     background-color: #d0d2ac !important;
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
     transition: width 0.3s ease-in-out, transform 0.3s ease-in-out;
 } */

 /* #sidebar-nav.hidden {
     transform: translateX(-100%);
     width: 0;
     padding: 0;
     overflow: hidden;
 } */

 #sidebar-nav .nav-buttons {
     display: flex;
     flex-direction: column;
     gap: 0.75rem;
     /* Space between buttons */
     width: 100%;
     margin-bottom: auto;
     /* Pushes logout button to the bottom */
 }

 #sidebar-nav .nav-buttons button {
     width: 100%;
     justify-content: flex-start;
     /* Align text to left */
     padding: 0.75rem 1rem;
     border-radius: 0.75rem;
     /* More rounded buttons */
     font-weight: 500;
     /* Slightly lighter font weight */
     transition: background-color 0.2s ease, transform 0.1s ease;
 }

 /* Nested navigation for Plans & Billing */
 .nested-nav-item {
     width: 100%;
 }

 /* Base style for nested nav header (matching other main buttons) */
 /* .nested-nav-header {
     width: 100%;
     justify-content: flex-start;
     padding: 0.75rem 1rem;
     display: flex;
     align-items: center;
     cursor: pointer;
     /* Match other main buttons' default style */
     background-color: #2563EB;
     color: #FFFFFF;
     border-radius: 0.75rem;
     transition: background-color 0.3s ease, border-radius 0.3s ease;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
 } */

 .nested-nav-header:hover {
     background-color: #1D4ED8;
     /* Equivalent to hover:bg-blue-700 */
 }

 /* Active state for nested nav header (when sub-menu is open) */
 /* .nested-nav-header.active {
     background-color: #ffffff;
     color: #1D4ED8;
     border-bottom-left-radius: 0;
     border-bottom-right-radius: 0;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
 } */

 /* .nested-nav-content {
     max-height: 0;
     overflow: hidden;
     transition: max-height 0.4s ease-in-out;
     background-color: #34495e;
     border-bottom-left-radius: 0.75rem;
     border-bottom-right-radius: 0.75rem;
     box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.1);
     padding-top: 0.5rem;
     padding-bottom: 0.5rem;
 } */

 /* .nested-nav-content.open {
     max-height: 200px;
 } */

 .nested-nav-content button {
     width: 100%;
     justify-content: flex-start;
     padding: 0.6rem 1.5rem;
     /* Indent sub-items */
     background-color: #4a627a;
     /* Slightly lighter for sub-items */
     color: #ecf0f1;
     border-radius: 0;
     /* No rounded corners for sub-items */
     transition: background-color 0.2s ease;
 }

 .nested-nav-content button:hover {
     background-color: #3e5165;
     /* Darker on hover */
 }

 /* Active state for sub-menu buttons */
 .nested-nav-content button.active-sub-btn {
     background-color: #ffffff;
     /* White background */
     color: #2c3e50;
     /* Dark text */
 }

 /* .nested-nav-content button:first-child {
     border-top-left-radius: 0;
     border-top-right-radius: 0;
 } */

 /* .nested-nav-content button:last-child {
     border-bottom-left-radius: 0.75rem;
     border-bottom-right-radius: 0.75rem;
 } */


 #logout-btn {
     width: 100%;
     margin-top: 1.5rem;
     /* More space above logout button */
     justify-content: center;
     padding: 0.75rem 1rem;
     background-color: #e74c3c;
     /* Red for logout */
     color: #fff;
     box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
 }

 #logout-btn:hover {
     background-color: #c0392b;
     transform: translateY(-2px);
 }


 /* Main Content Area */
 #main-content-area {
     flex-grow: 1;
     /* Allows content to take remaining space */
     display: flex;
     flex-direction: column;
     align-items: center;
     padding-left: 2rem;
     /* More spacing from sidebar */
     transition: padding-left 0.3s ease-in-out;
 }

 #main-content-area.full-width {
     padding-left: 0;
 }

 /* Custom styles for the pointer to ensure it's always on top */
 .pointer-container {
     position: absolute;
     top: 50%;
     right: -20px;
     transform: translateY(-50%) rotate(90deg);
     z-index: 10;
     display: flex;
     justify-content: center;
     align-items: flex-end;
     height: 40px;
     width: 30px;
     overflow: hidden;
 }

 .pointer-triangle {
     width: 0;
     height: 0;
     border-left: 15px solid transparent;
     border-right: 15px solid transparent;
     border-top: 20px solid #FF4500;
     filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
     position: absolute;
     bottom: 0;
 }

 /* Styles for the message area to position it at the bottom center */
 #message-area,
 #unsaved-changes-toaster {
     position: fixed;
     bottom: 1.5rem;
     /* Increased distance from bottom */
     left: 50%;
     transform: translateX(-50%);
     z-index: 1000;
     min-width: 280px;
     /* Wider message box */
     max-width: 90%;
     text-align: center;
     padding: 0.8rem 1.5rem;
     /* More padding */
     border-radius: 0.75rem;
     /* More rounded */
     box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
     transition: opacity 0.3s ease-in-out;
     font-weight: 500;
 }

 #message-area {
     top: 1.5rem !important;
     bottom: unset !important;
 }

 /* Accordion styles */
 .accordion-item {
     margin-bottom: 0.75rem;
     /* More spacing between accordion items */
     border-radius: 0.75rem;
     overflow: hidden;
     /* Ensures rounded corners apply to content */
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
     /* Subtle shadow for accordion */
 }

 .accordion-header {
     background-color: #d1d8e0;
     color: #2c3e50;
     cursor: pointer;
     padding: 1rem 1.5rem;
     width: 100%;
     text-align: left;
     border: none;
     outline: none;
     transition: background-color 0.3s ease;
     font-weight: 600;
     display: flex;
     justify-content: space-between;
     align-items: center;
     border-radius: 0.75rem;
 }

 .accordion-header:hover {
     background-color: #c0c8d0;
     /* Slightly darker on hover */
 }

 .accordion-header.active {
     background-color: #3498db;
     /* Blue for active header */
     color: #fff;
     border-bottom-left-radius: 0;
     border-bottom-right-radius: 0;
 }

 .accordion-content {
     padding: 0 1.5rem;
     background-color: white;
     overflow: hidden;
     transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
     /* Slower transition */
     max-height: 0;
     border-bottom-left-radius: 0.75rem;
     border-bottom-right-radius: 0.75rem;
 }

 .accordion-content.open {
     max-height: 1000px;
     padding: 1rem 1.5rem;
     display: block;
 }

 .accordion-icon {
     transition: transform 0.3s ease;
 }

 .accordion-header.active .accordion-icon {
     transform: rotate(90deg);
 }
#app-status-toggle{
    cursor: pointer;
}
 /* App Status Indicator */
 .app-status-indicator {
     display: flex;
     align-items: center;
     font-weight: 600;
     padding: 0.6rem 1.2rem;
     /* More padding */
     border-radius: 9999px;
     /* rounded-full */
     transition: background-color 0.3s ease, box-shadow 0.3s ease;
     background-color: #1b3d2f !important;
     /* Darker, more visible background */
     backdrop-filter: blur(5px);
     color: #fff;
     box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
     /* Stronger shadow */
 }

 .app-status-indicator:hover {
     background-color: rgba(52, 73, 94, 0.9);
     /* Darker on hover */
     box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
 }

 .app-status-dot {
     width: 0.8rem;
     /* Slightly larger dot */
     height: 0.8rem;
     border-radius: 50%;
     margin-right: 0.6rem;
     /* More margin */
     box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
     /* Shadow for the dot */
 }

 /* Live Widget Icon Display */
 /* Removed as per request */

 /* Card styles for views */
 .view-card {
     background-color: #ffffff;
     /* Solid white background */
     border-radius: 1rem;
     /* Consistent rounded corners */
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
     /* Modern shadow */
     padding: 2rem;
     /* Consistent padding */
     color: #34495e;
     /* Dark text for readability */
     margin-bottom: 1.5rem;
     /* Space between cards */
 }

 /* Table specific styles */
 .table-container {
     border-radius: 0.75rem;
     overflow: hidden;
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
 }

 .table-container table {
     width: 100%;
     border-collapse: separate;
     /* Allows border-radius on cells */
     border-spacing: 0;
 }

 .table-container th,
 .table-container td {
     padding: 1rem 1.25rem;
     /* More padding */
     border-bottom: 1px solid #e0e6ed;
     /* Lighter border */
     text-align: left;
 }

 .table-container th {
     background-color: #f0f2f5;
     /* Light header background */
     color: #5d738c;
     /* Muted header text */
     font-weight: 600;
     text-transform: uppercase;
     font-size: 0.85rem;
 }

 .table-container tr:nth-child(even) {
     background-color: #fcfdff;
     /* Subtle zebra striping */
 }

 .table-container tr:hover {
     background-color: #eaf3f7;
     /* Light hover effect */
 }

 /* Form element styling */
 .form-input,
 .form-select {
     width: 100%;
     padding: 0.75rem 1rem;
     border: 1px solid #d1d8e0;
     border-radius: 0.5rem;
     background-color: #fcfdff;
     color: #34495e;
     transition: border-color 0.2s ease, box-shadow 0.2s ease;
 }

 .form-input:focus,
 .form-select:focus {
     border-color: #3498db;
     box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
     outline: none;
 }

 /* Specific button styles for configuration */
 /* .config-btn {
            background-color: #3498db;
            color: white;
            padding: 0.75rem 1.5rem;
            border-radius: 0.75rem;
            box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
            transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
        }

        .config-btn:hover {
            background-color: #2980b9;
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
        } */

 .config-btn:disabled {
     background-color: #aeb6bf;
     box-shadow: none;
     cursor: not-allowed;
     transform: none;
 }

 /* Pricing Plan Cards */
 .plan-card {
     background-color: #ffffff;
     border-radius: 1rem;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
     padding: 2rem;
     text-align: center;
     display: flex;
     flex-direction: column;
     align-items: center;
     transition: transform 0.2s ease, box-shadow 0.2s ease;
 }

 .plan-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
 }

 .plan-card.popular {
     border: 4px solid #e74c3c;
     /* Red border for popular */
     box-shadow: 0 12px 30px rgba(231, 76, 60, 0.25);
 }

 .plan-card .price {
     font-size: 3.5rem;
     font-weight: 800;
     color: #2c3e50;
     margin-bottom: 1rem;
 }

 .plan-card .price span {
     font-size: 1.5rem;
     font-weight: 500;
     color: #7f8c8d;
 }

 .plan-card ul {
     list-style: none;
     padding: 0;
     margin-bottom: 2rem;
     text-align: left;
     width: 100%;
 }

 .plan-card ul li {
     margin-bottom: 0.75rem;
     color: #5d738c;
     display: flex;
     align-items: center;
 }

 .plan-card ul li svg {
     margin-right: 0.5rem;
     color: #2ecc71;
     /* Green checkmark */
 }

 .plan-card ul li.excluded svg {
     color: #e74c3c;
     /* Red X for excluded features */
 }


 .page {
     display: none;
     /* All pages hidden by default */
 }

 #dashboard,
 #configuration,
 #setup-guide,
 #faq-support {
     display: block;
     /* Show specific pages when required */
 }



 .draggable-item {
     transition: all 0.3s ease;
     cursor: grab;
 }

 .draggable-item.dragging {
     opacity: 0.5;
     background-color: #f0f9ff;
     border-color: #60a5fa;
 }

 .handle {
     cursor: move;
 }

 .sortable-list {
     min-height: 50px;
 }

 .mobile-preview {
     max-width: 320px;
     margin: 0 auto;
     border: 2px dashed #999;
     padding: 1rem;
     border-radius: 1rem;
 }

 .range-slider::-webkit-slider-thumb {
     appearance: none;
     height: 20px;
     width: 20px;
     background: #2563eb;
     /* Blue-600 */
     border-radius: 50%;
     cursor: pointer;
     margin-top: -9px;
 }

 .range-slider::-moz-range-thumb {
     height: 20px;
     width: 20px;
     background: #2563eb;
     border-radius: 50%;
     cursor: pointer;
 }

 .range-slider {
     background: linear-gradient(to right, #3b82f6 50%, #e5e7eb 50%);
     border-radius: 8px;
     height: 8px;
 }

 /* .pointer-container {
     top: 12px !important;
 }

 .pointer-container .pointer-triangle {
     top: 0;
 } */

 /* Modal styles */
 .modal-overlay {
     backdrop-filter: blur(4px);
 }

 .segment-color {
     cursor: pointer;
     border: 2px solid #e5e7eb;
     transition: border-color 0.2s;
 }

 .segment-color:hover {
     border-color: #3b82f6;
 }

 .segment-color:focus {
     outline: none;
     border-color: #3b82f6;
     box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
 }

 /* Container with background image */
 .container {
     display: flex;
     justify-content: center;
     align-items: center;
     /* background-image: url('https://images.unsplash.com/photo-1503264116251-35a269479413'); */
     /* Replace with your image */
     background-size: cover;
     background-position: center;
     padding: 40px;
     gap: 40px;
     border-radius: 12px;
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
     flex-wrap: wrap;
 }

 #configuration-view .container {
     gap: 0;
 }

 /* Canvas section */
 .canvas-wrapper {
     position: relative;
     max-width: 400px;
     height: auto;
     aspect-ratio: 1 / 1;
 }

 #spin-wheel-canvas {
     width: 100%;
     height: 100%;
     border-radius: 50%;
     border: 4px solid #60a5fa;
     /* blue-400 */
     box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
 }


 /* Text content */
 .text-section {
     /* max-width: 400px; */
     color: #fff;
     /* background-color: rgba(0, 0, 0, 0.4); */
     padding: 20px 0;
     border-radius: 8px;
     text-align: center;
     background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(1.25px);
    -webkit-backdrop-filter: blur(1.25px);
    border-radius: 6px;
    margin: 20px 0;
 }

 .text-section h2 {
     font-size: 42px;
     margin-bottom: 12px;
     line-height: 46px;
 }

 .text-section p {
     font-size: 20px;
     line-height: 1.3;
 }

 #spin-wheel-settings-form .view-card {
     padding: 24px;
 }

 #wheel-content .edit-text-setting {
     padding: 18px;
     border: 2px dashed #d0d2ac;
     border-radius: 8px;
 }

 #wheel-content .edit-text-setting .form-group {
     margin-bottom: 18px;
 }

 #wheel-content .edit-text-setting .form-group:last-child {
     margin-bottom: 0;
 }

 #loader {
     position: fixed;
     width: 100%;
     height: 100%;
     left: 0;
     right: 0;
     z-index: 9;
     top: 0;
     bottom: 0;
     background: rgba(255, 255, 255, 0.9);
 }

 .loader-icon {
     border: 4px solid #f3f3f3;
     border-top: 4px solid #1b3d2f;
     border-radius: 50%;
     width: 80px;
     height: 80px;
     animation: spin 1s linear infinite;
     margin: 0 auto;
     position: absolute;
     left: 0;
     right: 0;
     top: 0;
     bottom: 0;
     margin: auto;
 }

 #loader::before {
     content: '';
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
 }

 #loader::after {
     content: 'Loading...';
     position: absolute;
     top: 60%;
     left: 50%;
     transform: translateX(-50%);
     font-size: 1.2rem;
     color: #1b3d2f;
 }

 /* Animation for spinning effect */
 @keyframes spin {
     0% {
         transform: rotate(0deg);
     }

     100% {
         transform: rotate(360deg);
     }
 }

 /* Content styles */
 #content {
     display: none;
 }