﻿/* =========================================================
   SOFTALAYA IMS
   Visual Design Prototype 0.1.1
   ========================================================= */


/* =========================================================
   COLOR SYSTEM
   Color = Meaning
   ========================================================= */

:root {
    --softalaya-primary: #234a68;
    --softalaya-primary-dark: #19384f;
    --softalaya-primary-light: #eaf2f8;
    --softalaya-success: #2f7d55;
    --softalaya-success-light: #eaf6ef;
    --softalaya-warning: #b7791f;
    --softalaya-warning-light: #fff7e6;
    --softalaya-danger: #b53b3b;
    --softalaya-danger-light: #fcecec;
    --softalaya-text: #26343d;
    --softalaya-muted: #71808a;
    --softalaya-border: #d9e0e5;
    --softalaya-surface: #ffffff;
    --softalaya-background: #f3f6f8;
    --sidebar-width: 240px;
    --sidebar-mini-width: 68px;
    --topbar-height: 64px;
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: Calibri, Arial, sans-serif;
    font-size: 15px;
    background: var(--softalaya-background);
    color: var(--softalaya-text);
}

button,
input,
select,
textarea {
    font-family: inherit;
}


/* =========================================================
   APPLICATION SHELL
   ========================================================= */

.app-shell {
    min-height: 100vh;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-height);
    background: var(--softalaya-primary);
    color: white;
    display: flex;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .12);
}


/* =========================================================
   SIDEBAR CONTROLS
   ========================================================= */

.sidebar-controls {
    display: flex;
    align-items: center;
}

.sidebar-control {
    height: var(--topbar-height);
    border: 0;
    background: transparent;
    color: white;
    padding: 0 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    font-size: 14px;
}

    .sidebar-control:first-child {
        font-size: 20px;
    }

    .sidebar-control:hover {
        background: rgba(255,255,255,.10);
    }

    .sidebar-control span {
        font-size: 12px;
        opacity: .85;
    }


/* =========================================================
   SIDEBAR CONTROL STATES
   ========================================================= */

/* Expanded */

body:not(.sidebar-mini):not(.sidebar-hidden)
#btnShowSidebar {
    display: none;
}


/* Shrunk */

body.sidebar-mini
#btnShowSidebar {
    display: none;
}

body.sidebar-mini
#btnShrinkSidebar {
    display: none;
}


/* Hidden */

body.sidebar-hidden
#btnShowSidebar {
    display: flex;
}

body.sidebar-hidden
#btnShrinkSidebar {
    display: none;
}

body.sidebar-hidden
#btnHideSidebar {
    display: none;
}


/* =========================================================
   LOGO
   ========================================================= */

.logo-area {
    display: flex;
    align-items: center;
    min-width: 240px;
    gap: 10px;
}

.logo-box {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    background: white;
    color: var(--softalaya-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.logo-name {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo-ims {
    font-size: 12px;
    opacity: .75;
    margin-left: 3px;
}


/* =========================================================
   THOUGHT FOR TODAY
   ========================================================= */

.daily-thought {
    flex: 1;
    text-align: center;
    padding: 0 20px;
    font-size: 14px;
    white-space: nowrap;
}

.daily-thought-label {
    opacity: .65;
    margin-right: 7px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.daily-thought-text {
    font-style: italic;
}


/* =========================================================
   USER AREA
   ========================================================= */

.user-area {
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    padding-right: 18px;
}

.user-name {
    font-weight: 600;
}

.user-role {
    font-size: 12px;
    opacity: .70;
}

.signout {
    color: white;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 4px;
}

    .signout:hover {
        background: rgba(255,255,255,.10);
    }


/* =========================================================
   SOFTALAYA SIDEBAR
   ========================================================= */

.sidebar {
    position: fixed;
    top: var(--topbar-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: linear-gradient( 180deg, #edf5fa 0%, #f5f8fa 45%, #eef4f7 100% );
    border-right: 1px solid #d3dfe6;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 900;
    transition: width .18s ease, transform .18s ease;
    box-shadow: 2px 0 10px rgba(35, 74, 104, .08);
}


/* =========================================================
   SIDEBAR TITLE
   ========================================================= */

.sidebar-heading {
    height: 24px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    color: #617887;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1px;
    background: rgba(255,255,255,.38);
    border-bottom: 1px solid #d6e2e9;
    white-space: nowrap;
}


/* =========================================================
   MENU HEADER
   ========================================================= */

.menu-header {
    margin: 14px 10px 6px;
    padding: 8px 11px;
    color: var(--softalaya-primary);
    background: rgba(35, 74, 104, .08);
    border-left: 3px solid var(--softalaya-primary);
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: .8px;
    white-space: nowrap;
}


/* =========================================================
   MENU ITEM
   ========================================================= */

.menu-item {
    display: flex;
    align-items: center;
    height: 22px;
    margin: 2px 10px;
    padding: 0 12px;
    color: #405563;
    text-decoration: none;
    white-space: nowrap;
    border-left: 3px solid transparent;
    border-radius: 4px;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
}


/* =========================================================
   MENU ICON
   ========================================================= */

.menu-icon {
    width: 30px;
    text-align: center;
    color: #5e8198;
    font-size: 16px;
    flex-shrink: 0;
}


/* =========================================================
   MENU TEXT
   ========================================================= */

.menu-text {
    margin-left: 5px;
}


/* =========================================================
   MENU HOVER
   ========================================================= */

.menu-item:hover {
    background: rgba(35, 74, 104, .07);
    color: var(--softalaya-primary);
    border-left-color: #7da4bd;
}

    .menu-item:hover .menu-icon {
        color: var(--softalaya-primary);
    }


/* =========================================================
   ACTIVE MENU
   ========================================================= */

.menu-item.active {
    background: rgba(35, 74, 104, .14);
    color: var(--softalaya-primary);
    border-left-color: var(--softalaya-primary);
    font-weight: 600;
}

    .menu-item.active .menu-icon {
        color: var(--softalaya-primary);
    }


/* =========================================================
   SHRUNK SIDEBAR
   ========================================================= */

body.sidebar-mini .sidebar {
    width: var(--sidebar-mini-width);
}

body.sidebar-mini .menu-header {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    font-size: 0;
    border-left: 0;
    background: transparent;
    margin-left: 5px;
    margin-right: 5px;
}

    body.sidebar-mini .menu-header::before {
        content: "•";
        font-size: 16px;
        color: var(--softalaya-primary);
    }

body.sidebar-mini .menu-text,
body.sidebar-mini .sidebar-heading {
    display: none;
}

body.sidebar-mini .menu-item {
    justify-content: center;
    padding: 0;
    margin-left: 8px;
    margin-right: 8px;
}

body.sidebar-mini .menu-icon {
    width: auto;
    font-size: 17px;
}


/* =========================================================
   HIDDEN SIDEBAR
   ========================================================= */

body.sidebar-hidden .sidebar {
    transform: translateX(-100%);
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--topbar-height);
    min-height: 100vh;
    transition: margin-left .18s ease;
}

body.sidebar-mini .main-content {
    margin-left: var(--sidebar-mini-width);
}

body.sidebar-hidden .main-content {
    margin-left: 0;
}

.page-content {
    padding: 28px;
}


/* =========================================================
   PAGE HEADER
   ========================================================= */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.page-title {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
}

.breadcrumb {
    margin-top: 4px;
    color: var(--softalaya-muted);
    font-size: 13px;
}


/* =========================================================
   TOOLBAR
   ========================================================= */

.toolbar {
    display: flex;
    gap: 8px;
    align-items: center;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    border: 1px solid var(--softalaya-border);
    background: white;
    color: var(--softalaya-text);
    padding: 8px 16px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
}

    .btn:hover {
        background: #f5f7f8;
    }

.btn-primary {
    border-color: var(--softalaya-primary);
    background: var(--softalaya-primary);
    color: white;
}

    .btn-primary:hover {
        background: var(--softalaya-primary-dark);
    }

.btn-success {
    border-color: var(--softalaya-success);
    background: var(--softalaya-success);
    color: white;
}

.btn-danger {
    border-color: var(--softalaya-danger);
    background: var(--softalaya-danger);
    color: white;
}


/* =========================================================
   PANELS
   ========================================================= */

.panel {
    background: var(--softalaya-surface);
    border: 1px solid var(--softalaya-border);
    border-radius: 6px;
    margin-bottom: 20px;
    overflow: hidden;
}

.panel-title {
    padding: 14px 18px;
    background: #f8fafb;
    border-bottom: 1px solid var(--softalaya-border);
    font-weight: 600;
}

.panel-body {
    padding: 20px;
}


/* =========================================================
   MASTER FORM
   ========================================================= */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 1fr));
    gap: 18px 22px;
}

.field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
}

.input {
    width: 100%;
    height: 37px;
    border: 1px solid #cbd4da;
    border-radius: 4px;
    padding: 7px 10px;
    background: white;
    color: var(--softalaya-text);
}

    .input:focus {
        outline: none;
        border-color: var(--softalaya-primary);
        box-shadow: 0 0 0 2px var(--softalaya-primary-light);
    }


/* =========================================================
   DATA GRID
   ========================================================= */

.data-grid {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

    .data-grid th {
        padding: 11px 13px;
        background: #f1f5f7;
        border-bottom: 1px solid var(--softalaya-border);
        text-align: left;
        font-weight: 600;
        color: var(--softalaya-text);
    }

    .data-grid td {
        padding: 10px 13px;
        border-bottom: 1px solid #edf0f2;
    }

    .data-grid tr:hover td {
        background: var(--softalaya-primary-light);
    }


/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard-welcome {
    background: white;
    border: 1px solid var(--softalaya-border);
    border-left: 5px solid var(--softalaya-primary);
    border-radius: 6px;
    padding: 22px;
    margin-bottom: 22px;
}

.dashboard-welcome-title {
    font-size: 22px;
    font-weight: 600;
}

.dashboard-welcome-text {
    margin-top: 5px;
    color: var(--softalaya-muted);
}


/* =========================================================
   DASHBOARD SECTION
   ========================================================= */

.dashboard-section-title {
    margin: 20px 0 12px;
    font-size: 13px;
    font-weight: bold;
    color: var(--softalaya-muted);
    letter-spacing: .6px;
    text-transform: uppercase;
}

.dashboard-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

.dashboard-action {
    background: white;
    border: 1px solid var(--softalaya-border);
    border-radius: 6px;
    padding: 18px;
    text-decoration: none;
    color: var(--softalaya-text);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

    .dashboard-action:hover {
        transform: translateY(-2px);
        border-color: var(--softalaya-primary);
        box-shadow: 0 5px 14px rgba(0,0,0,.07);
    }

.dashboard-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--softalaya-primary-light);
    color: var(--softalaya-primary);
    font-size: 20px;
    margin-bottom: 12px;
}

.dashboard-action-title {
    font-weight: 600;
}

.dashboard-action-description {
    margin-top: 4px;
    color: var(--softalaya-muted);
    font-size: 12px;
}


/* =========================================================
   RECEIPT
   ========================================================= */

.receipt-total {
    display: flex;
    justify-content: flex-end;
    gap: 60px;
    background: white;
    border: 1px solid var(--softalaya-border);
    border-radius: 6px;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
}


/* =========================================================
   STATUS
   ========================================================= */

.status-active {
    color: var(--softalaya-success);
    background: var(--softalaya-success-light);
    padding: 4px 8px;
    border-radius: 4px;
}

.status-warning {
    color: var(--softalaya-warning);
    background: var(--softalaya-warning-light);
    padding: 4px 8px;
    border-radius: 4px;
}

.status-danger {
    color: var(--softalaya-danger);
    background: var(--softalaya-danger-light);
    padding: 4px 8px;
    border-radius: 4px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    margin-left: var(--sidebar-width);
    height: 38px;
    background: white;
    border-top: 1px solid var(--softalaya-border);
    color: var(--softalaya-muted);
    padding: 0 20px;
    display: flex;
    align-items: center;
    font-size: 12px;
    transition: margin-left .18s ease;
}

body.sidebar-mini .footer {
    margin-left: var(--sidebar-mini-width);
}

body.sidebar-hidden .footer {
    margin-left: 0;
}


/* =========================================================
   SIGN IN
   ========================================================= */

.signin-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef3f6;
}

.signin-card {
    width: 410px;
    background: white;
    border: 1px solid var(--softalaya-border);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

.signin-brand {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--softalaya-primary);
}

.signin-product {
    text-align: center;
    margin-top: 5px;
    color: var(--softalaya-muted);
    font-size: 11px;
    letter-spacing: 1px;
}

.signin-line {
    height: 1px;
    background: var(--softalaya-border);
    margin: 26px 0;
}

.signin-card h2 {
    margin: 0 0 18px;
    font-size: 21px;
    font-weight: 600;
}

.signin-card .input {
    margin-bottom: 13px;
}

.signin-card .btn-primary {
    width: 100%;
    height: 40px;
    margin-top: 8px;
}

.message {
    display: block;
    margin-bottom: 12px;
    color: var(--softalaya-danger);
}

.signin-footer {
    text-align: center;
    margin-top: 25px;
    color: var(--softalaya-muted);
    font-size: 12px;
}
