/* ==========================================================
   ANDROLAB SUITE — GLOBAL BASE STYLES
   Author: Carlen @ Androlab
   Version: 1.1
   ========================================================== */

/* ------------------------------
   LAYOUT WRAPPER
------------------------------ */
#androlab-suite-wrapper {
    display: flex;
    min-height: 100vh;
    background: #f5f5f5;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* ------------------------------
   SIDEBAR
------------------------------ */
.androlab-sidebar {
    width: 250px;
    background: #111;
    color: #fff;
    display: flex;
    flex-direction: column;
    padding-top: 15px;
    overflow-y: auto;
    border-right: 1px solid #222;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 10;
}

.androlab-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.androlab-menu .menu-section {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.6px;
    color: #aaa;
    padding: 12px 20px 6px;
    border-bottom: 1px solid #222;
}

.androlab-menu li[data-module] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.androlab-menu li[data-module] i {
    width: 18px;
    text-align: center;
    color: #ccc;
    font-size: 15px;
}

.androlab-menu li[data-module]:hover,
.androlab-menu li[data-module].active {
    background: #1d1d1d;
    color: #fff;
}

.androlab-menu li[data-module]:hover i,
.androlab-menu li[data-module].active i {
    color: #ff7a00; /* accent orange */
}

/* ==========================================================
   SIDEBAR HEADER + COLLAPSIBLE MODE
========================================================== */
.androlab-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px 10px;
    border-bottom: 1px solid #222;
    margin-bottom: 10px;
}

.androlab-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #fff;
    font-size: 15px;
}

.androlab-logo i {
    color: #ff7a00;
}

/* .androlab-logo-text {
font-size: 13px;
} */

#androlab-sidebar-toggle {
    background: none;
    border: none;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s ease;
}

#androlab-sidebar-toggle:hover {
    color: #fff;
}

/* --- Collapsed Sidebar --- */
.androlab-sidebar.collapsed {
    width: 70px;
    transition: width 0.25s ease;
}

.androlab-sidebar.collapsed .menu-section {
    display: none;
}

.androlab-sidebar.collapsed li[data-module] span {
    display: none;
}

.androlab-sidebar.collapsed li[data-module] i {
    margin: 0 auto;
    font-size: 18px;
}

.androlab-sidebar.collapsed #androlab-sidebar-toggle {
    color: #ff7a00;
}

/* --- Adjust content area when collapsed --- */
body.sidebar-collapsed #androlab-content {
    transition: margin-left 0.25s ease;
}

@media (max-width: 900px) {
    .androlab-sidebar {
        position: fixed;
        left: -250px;
        transition: left 0.3s ease;
    }
    .androlab-sidebar.open {
        left: 0;
    }
    #androlab-sidebar-toggle {
        position: absolute;
        right: -45px;
        background: #111;
        border-radius: 0 6px 6px 0;
        padding: 6px;
    }
}


/* ==========================================================
   AUTO TOOLTIP FOR COLLAPSED SIDEBAR
========================================================== */
.androlab-tooltip {
    position: absolute;
    background: #111;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 9999;
    opacity: 0;
    transform: translateY(-50%);
    animation: tooltipFadeIn 0.2s forwards;
}

@keyframes tooltipFadeIn {
    to { opacity: 1; }
}

/* Small arrow on tooltip */
.androlab-tooltip::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #111 transparent transparent;
}




/* ------------------------------
   MAIN CONTENT AREA
------------------------------ */
#androlab-content {
    flex: 1;
    background: #fff;
    padding: 25px 30px;
    overflow-y: auto;
    box-shadow: inset 0 1px 0 rgba(0,0,0,0.05);
}

.androlab-loading {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-top: 120px;
}

/* ------------------------------
   BUTTONS (GLOBAL)
------------------------------ */
.androlab-btn {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s all;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.androlab-btn:hover {
    background: #111;
}

/* ------------------------------
   MODAL (GLOBAL)
------------------------------ */
.androlab-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.androlab-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeIn 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}

/* ------------------------------
   SCROLLBAR STYLING
------------------------------ */
.androlab-sidebar::-webkit-scrollbar {
    width: 8px;
}
.androlab-sidebar::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}
.androlab-sidebar::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* ------------------------------
   RESPONSIVE ADJUSTMENTS
------------------------------ */
@media (max-width: 900px) {
    #androlab-suite-wrapper {
        flex-direction: column;
    }
    .androlab-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        height: auto;
        position: relative;
    }
    .androlab-menu li[data-module] {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* ==========================================================
   MODULE BASE WRAPPER (applies to any module)
========================================================== */
.androlab-page-content {
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    max-width: 100%;
    margin: 20px auto;
}

/* ==========================================================
   GRAVITY FORM OVERRIDES (used by blood-work modules)
========================================================== */
.gform_wrapper.androlab-custom-form {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.gfield_label {
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
}

.ginput_container input[type="text"],
.ginput_container input[type="email"],
.ginput_container input[type="number"],
.ginput_container input[type="file"],
.ginput_container select,
.ginput_container textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 15px;
    background: #fff;
    color: #333;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.ginput_container input:focus,
.ginput_container select:focus,
.ginput_container textarea:focus {
    border-color: #F05323;
    outline: none;
}

.gform_button.button.gform_submit_button {
    background-color: #F05323;
    color: #fff;
    border: none;
    padding: 12px 26px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    align-self: flex-start;
    transition: background-color 0.2s ease;
}

.gform_button.button.gform_submit_button:hover {
    background-color: #005f8d;
}

/* ==========================================================
   SELECT2 STYLING
========================================================== */
.select2-container--default .select2-selection--single {
    border: 1px solid #ccc;
    border-radius: 4px;
    height: 42px;
    padding: 6px 10px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 28px;
    font-size: 15px;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    right: 10px;
}

.select2-dropdown {
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.select2-results__option--highlighted {
    background: #F05323 !important;
    color: #fff !important;
}

/* ==========================================================
   TABLE BASE (used across modules)
========================================================== */
.androlab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.androlab-table th,
.androlab-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    white-space: nowrap;
}

.androlab-table thead {
    background: #f3f4f6;
    border-bottom: 2px solid #e5e7eb;
}

.androlab-table tbody tr:hover {
    background: #f9fafb;
}

/* ==========================================================
   PAGINATION (used globally)
========================================================== */
.androlab-pagination {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.androlab-pagination button {
    background: var(--androlab-blue, #2271b1);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.androlab-pagination button[disabled] {
    background: #ccc;
    cursor: not-allowed;
}

.androlab-pagination input[type="number"] {
    width: 60px;
    text-align: center;
    padding: 4px;
    border: 1px solid #ddd;
    border-radius: 4px;
}


