/* ---------------------------------------------------------
   Locate CRM - Theme Stylesheet
   Version: 0.1.0
   Updated: 2026-05-27
--------------------------------------------------------- */

/* ---------------------------------------------------------
   GLOBAL THEME (Light-only)
--------------------------------------------------------- */
body {
    background-color: #f5f5f5;          /* light global background */
    color: #1a1a1a;                     /* dark text */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Smooth transitions for themeable elements */
body,
.crm-navbar,
.sidebar,
.page-content,
.form-control,
.mobile-menu {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease;
}

/* ---------------------------------------------------------
   THEME TOGGLE BUTTON (no dark mode)
--------------------------------------------------------- */
#themeToggle {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 1px solid #c7c7c7;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* ---------------------------------------------------------
   MOBILE MENU (Slide-In)
--------------------------------------------------------- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 260px;
    height: 100vh;
    background-color: #ffffff;          /* light panel */
    box-shadow: -2px 0 8px rgba(0,0,0,0.15);
    z-index: 2000;
    padding-top: 10px;
    transition:
        right 0.35s cubic-bezier(0.25, 0.8, 0.25, 1),
        background-color 0.3s ease;
}

.mobile-menu.open {
    right: 0;
}

/* ---------------------------------------------------------
   MOBILE MENU HEADER
--------------------------------------------------------- */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #d0d0d0;
    color: #1a1a1a;
}

/* ---------------------------------------------------------
   MOBILE MENU LIST ITEMS
--------------------------------------------------------- */
.mobile-menu .menu-item {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.mobile-menu .menu-item a {
    text-decoration: none;
    font-size: 15px;
    color: #1a1a1a;
    transition: color 0.2s ease;
}

.mobile-menu .menu-item a:hover {
    color: #0d6efd;                     /* Windows blue */
}

/* Section headers */
.mobile-menu .menu-section {
    padding: 12px 16px 6px 16px;
    font-size: 13px;
    text-transform: uppercase;
    opacity: 0.7;
    color: #555;
}

/* Danger items */
.mobile-menu .menu-item-danger a {
    color: #dc3545 !important;
}

/* ---------------------------------------------------------
   OVERLAY (Dim Background)
--------------------------------------------------------- */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.35);
    z-index: 1500;
    display: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.mobile-overlay.show {
    display: block;
    opacity: 1;
}

/* ---------------------------------------------------------
   GENERIC CARD SUPPORT
--------------------------------------------------------- */
.card {
    background-color: #ffffff;
    color: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #d0d0d0;
}

/* ---------------------------------------------------------
   FORMS (Theme-level overrides)
--------------------------------------------------------- */
.form-control {
    background-color: #ffffff;
    color: #1a1a1a;
    border: 1px solid #c7c7c7;
}

/* ---------------------------------------------------------
   TABLES (Theme-level)
--------------------------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
}
