/* ============================================================================
   Techlift Nexus ERP — UI Modernization Layer
   ----------------------------------------------------------------------------
   Purpose: applies a modern visual refresh (rounded corners, soft shadows,
   consistent spacing, refined typography) on top of the existing AdminLTE /
   Bootstrap 3 theme WITHOUT modifying assets/css/app.css or any vendor file.

   This file is loaded last (after app.css) in
   application/views/admin/components/htmlheader.php, so these rules only
   need to be as specific as the originals - no !important needed except
   where the base theme itself uses !important.

   Scope: purely presentational. No business logic, markup structure, or
   JS behaviour is affected. Safe to remove (delete the <link> tag) to
   instantly revert to the original look with zero side effects.
   ============================================================================ */

/* ---- Global surface treatment: cards / panels used across every module ---- */
.panel,
.box,
.report_menu,
.mt-lg {
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: box-shadow .15s ease-in-out;
}

.panel:hover,
.report_menu:hover {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.05);
}

.panel .panel-heading {
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    font-weight: 600;
}

.panel-group .panel-flat:first-child {
    border-radius: 10px 10px 0 0;
}

.panel-group .panel-flat:last-child {
    border-radius: 0 0 10px 10px;
}

/* ---- Buttons: slightly rounder, consistent weight ---- */
.btn {
    border-radius: 6px;
    font-weight: 500;
}

.btn-primary {
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

/* ---- Form controls: match the softened card language ---- */
.form-control,
.select2-container--default .select2-selection--single,
.input-group-addon {
    border-radius: 6px;
}

/* ---- Tables: calmer borders, breathing room ---- */
.table > thead > tr > th {
    font-weight: 600;
    border-bottom-width: 2px;
}

.table > tbody > tr > td,
.table > tbody > tr > th {
    vertical-align: middle;
}

/* ---- Sidebar: match the new Techlift navy theme with a soft divider ---- */
.sidebar .nav > li.active > a {
    border-radius: 0 6px 6px 0;
}

/* ---- Dashboard widgets specifically ---- */
.dashboard .panel,
.dashboard .report_menu {
    margin-bottom: 18px;
}

.dashboard .text-info,
.dashboard .text-danger,
.dashboard .text-success {
    font-size: 1.05em;
}

/* ---- Login / lock screen card ---- */
.left-login-panel.panel-flat {
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18) !important;
}

.lockscreen-logo {
    margin-bottom: 16px;
}

/* ---- Small type/spacing refinements ---- */
body {
    letter-spacing: 0.1px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}
