/* === SaveYourClient Final Consolidated Stylesheet === */

/* 1. Root / CSS Variables (Color Palette) */
:root {
    --primary-accent: #c1ff72;
    --primary-accent-darker: #b2e665;
    --text-on-accent: #000000;
    --text-color: #363636;
    --heading-color: #000000;
    --link-silver: #95a5a6;
    --link-silver-hover: #363636;
    --sidebar-bg: #ffffff;
    --main-bg: #f5f7fa;
    --border-color: #dbdbdb;
    --brand-color-light: #f4ffde;
}

/* 2. General Body, Text, and Layout Styles */
body, html {
    background-color: var(--main-bg);
    color: var(--text-color);
    overflow-x: hidden;
}
.title, strong {
    color: var(--text-color);
}
label, .subtitle, p {
    color: var(--text-color) !important;
}
.main-layout {
    display: flex;
    min-height: 100vh;
}
.main-content {
    padding: 1rem 2rem;
    margin-left: 260px;
    width: calc(100% - 260px);
    transition: all 0.3s ease-in-out;
}
.main-content.is-fullwidth {
    margin-left: 0;
    width: 100%;
}
.is-flex-vcentered {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 3. Sidebar, Header, and Footer Styles */
.sidebar {
    overflow-y: auto;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    background-color: var(--sidebar-bg);
    box-shadow: 2px 0 8px rgba(0,0,0,0.08);
    z-index: 1020;
    transition: margin-left 0.3s ease-in-out;
}
.sidebar.is-collapsed {
    margin-left: -260px;
}
.sidebar-toggle {
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1030;
    cursor: pointer;
    background-color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease-in-out;
}
.sidebar-toggle .fa-bars {
    color: var(--primary-accent-darker);
}
.sidebar-toggle:hover {
    color: var(--primary-accent-darker);
}
.sidebar .menu-list a {
    display: flex;
    align-items: center;
    border-radius: 8px;
    font-weight: 500;
    color: #4a4a4a;
    padding: 0.75em 1em;
    transition: all 0.2s ease-in-out;
}
.sidebar .menu-list a:hover {
    background-color: #f5f5f5;
    color: var(--text-color);
}
.sidebar .menu-list a.is-active {
    background-color: var(--brand-color-light);
    color: var(--heading-color);
    font-weight: bold;
}
.sidebar .menu-list a.is-active .icon {
    color: var(--primary-accent-darker);
}
.menu-list-separator {
    margin: 1rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.footer {
    background-color: transparent;
    padding: 3rem 1.5rem;
}

/* 4. Component Styles (Buttons, Boxes, Tables, etc.) */
.box {
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
.button.is-primary {
    background-color: var(--primary-accent);
    border-color: transparent;
    color: var(--text-on-accent);
    font-weight: bold;
}
.button.is-primary:hover {
    background-color: var(--primary-accent-darker);
}
.table , .table td {
    background-color: #ffffff;
    color: var(--text-color);
}
.table thead th {
    background-color: #f7f7f7;
    color: var(--text-color);
    border-bottom-width: 2px;
}
.table tr:hover {
    background-color: #fafafa !important;
}
.table code {
    background-color: var(--brand-color-light);
    color: var(--text-color);
    font-size: 0.9em;
    padding: 0.25em 0.5em;
    border-radius: 4px;
    font-weight: 500;
}

/* 5. Form & Floating Label Styles */
.link-silver {
    color: var(--link-silver);
}
.link-silver:hover {
    color: var(--link-silver-hover);
    text-decoration: underline;
}
.field-container {
    position: relative;
    margin-bottom: 2rem;
    margin-top: 1.5rem;
}
.form-input {
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    border-radius: 0;
    box-shadow: none;
    font-size: 1rem;
    padding: 10px 5px 5px 5px;
    width: 100%;
    color: var(--text-color) !important;
}
.form-input:focus {
    outline: none;
    border-bottom-color: var(--primary-accent);
}
.form-label {
    color: #999;
    font-size: 1rem;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 10px;
    transition: 0.2s ease all;
}
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-accent-darker);
}
.control.has-icons-right {
    position: relative;
}
.control.has-icons-right .icon {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    pointer-events: initial;
    cursor: pointer;
    color: var(--border-color);
}
.control.has-icons-right .icon:hover {
    color: var(--text-color);
}
.password-rules {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
    font-size: 0.9rem;
    display: none;
}
.password-rules li {
    margin-bottom: 5px;
    color: #7a7a7a;
    transition: color 0.3s ease;
}
.password-rules li.is-valid {
    color: #23d160;
    text-decoration: line-through;
}
.password-rules li.is-valid::before {
    content: '✔ ';
    font-weight: bold;
    margin-right: 5px;
}

/* 6. Datatable Styles */
.datatable-wrapper { padding-top: 1rem; }
.datatable-input, .datatable-selector {
    padding: 0.5em 0.75em;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: white;
    color: var(--text-color);
}
.datatable-pagination-list { list-style: none; padding-left: 0; }
.datatable-pagination-list .datatable-pagination-list-item a {
    border: 1px solid var(--border-color);
    padding: 0.5em 0.75em;
    text-decoration: none;
    color: var(--text-color);
}
.datatable-pagination-list .datatable-pagination-list-item a:hover {
    background-color: #f5f5f5;
}
.datatable-pagination-list .datatable-active a,
.datatable-pagination-list .datatable-active a:hover {
    background-color: var(--primary-accent);
    color: var(--text-on-accent);
    font-weight: bold;
    border-color: var(--primary-accent);
}
.file .file-name {
    color: #363636; /* Sets the text color to a dark grey */
}
/* --- Drag & Drop UI Enhancements --- */
.file.is-boxed .file-cta {
    border: 2px dashed #dbdbdb; /* Add a dashed border */
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}

.file.is-boxed.is-active .file-cta {
    transform: scale(1.05); /* Make it slightly bigger on hover */
    background-color: #f4ffde; /* Use a light brand color for the background */
    border-color: #b2e665;
}

/* --- Show/Hide Password Icon Style --- */
.control.has-icons-right .icon.is-clickable {
    pointer-events: all;
    cursor: pointer;
}