/* ---------------------------------------------------------
   Locate CRM - Global Base Stylesheet
   Version: 0.2.0
   Updated: 2026-06-11
--------------------------------------------------------- */

/* ---------------------------------------------------------
   RESET & BASE
--------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.5;
    background: #f5f5f5;                /* light global background */
    color: #1a1a1a;                     /* dark text */
    overflow-x: hidden;
}

/* ---------------------------------------------------------
   GLOBAL LAYOUT (Navbar + Sidebar + Content)
--------------------------------------------------------- */
.page-content {
    margin-top: 56px;                   /* navbar height */
    margin-left: 240px;                 /* sidebar width */
    padding: 25px;
    min-height: calc(100vh - 56px);
    transition: margin-left 0.3s ease;
}

@media (max-width: 900px) {
    .page-content {
        margin-left: 0;                 /* sidebar hidden on mobile */
    }
}

/* ---------------------------------------------------------
   UTILITY CLASSES
--------------------------------------------------------- */
.full-height {
    min-height: 100vh;
}

.centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------
   FORMS
--------------------------------------------------------- */
.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #c7c7c7;          /* light border */
    background: #ffffff;                /* light input */
    color: #1a1a1a;
}

.form-control:focus {
    outline: none;
    border-color: #1976d2;              /* Windows blue */
}

/* Plaintext (read-only) fields */
.form-control-plaintext {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    margin-bottom: 0;
    line-height: 1.5;
    color: #495057;
}

/* Non-editable / locked fields */
.field-locked {
    background-color: #fff7e6;          /* soft yellow to signal read-only */
    border-radius: 4px;
    border: 1px dashed #e0a800;
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-primary {
    background: #1976d2;
    color: #fff;
}

.btn-primary:hover {
    background: #2196f3;
}

.btn-danger {
    background: #c62828;
    color: #fff;
}

.btn-danger:hover {
    background: #e53935;
}

/* ---------------------------------------------------------
   TABLES
--------------------------------------------------------- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th {
    font-weight: 600;
    background: #f2f2f2;                /* light header */
    padding: 10px;
    border-bottom: 1px solid #d0d0d0;
    color: #1a1a1a;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #d0d0d0;
    color: #1a1a1a;
}

/* ---------------------------------------------------------
   MOBILE MENU (Overlay + Panel)
--------------------------------------------------------- */
.mobile-menu {
    width: 260px;
    max-width: 80%;
}

.mobile-overlay {
    cursor: pointer;
}
