/* ——————————————————————
   BAYANNO CSS - MODERN + BOOTSTRAP 5 STYLE (2025)
—————————————————————— */

:root {
    --primary: #3b82f6;
    --primary-hover: #1e4dbc;

    --secondary: #64748b;

    --bg: #f8fafc;
    --surface: #ffffff;

    --text: #1e293b;
    --muted: #64748b;

    --border: #e2e8f0;

    --radius: 6px;
    --shadow: 0 2px 8px rgba(0,0,0,0.05);

    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #0ea5e9;

    --focus: rgba(59,130,246,0.4);
}

/* ——————————————————————
   GLOBAL
—————————————————————— */
* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
}

/* Headings */
h1,h2,h3,h4,h5,h6 {
    font-weight: 600;
    margin: 10px 0;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

/* ——————————————————————
   BUTTONS (Bootstrap-like)
—————————————————————— */
.btn, button,
input[type="submit"], input[type="button"] {
    display: inline-block;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.2s;
    font-weight: 500;
}

.btn:hover { transform: translateY(-1px); }

/* Primary */
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover {
    background: var(--primary-hover);
}

/* Success */
.btn-success { background: var(--success); color: white; }
.btn-success:hover { opacity: 0.9; }

/* Danger */
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { opacity: 0.9; }

/* Warning */
.btn-warning { background: var(--warning); color: #111; }
.btn-warning:hover { opacity: 0.9; }

/* Secondary */
.btn-secondary { background: var(--secondary); color: white; }
.btn-secondary:hover { background: #475569; }

/* Light outline */
.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-outline:hover {
    background: #f1f5f9;
}

/* ——————————————————————
   BOOTSTRAP-LIKE NAV TABS
—————————————————————— */
.nav-tabs {
    border-bottom: 1px solid var(--border);
    display: flex;
 
    margin-bottom: 18px;
}

.nav-tabs li a {
    display: block;
    padding: 10px 16px;
    border-radius: var(--radius) var(--radius) 0 0;
  
    color: var(--text);
    font-weight: 500;
}

.nav-tabs li.active a {
    background: var(--surface);
    border: 1px solid var(--border);
    border-bottom: none !important;
}

/* ——————————————————————
   FORMS (Bootstrap-like)
—————————————————————— */
input, select, textarea {
    width: 100%;
    padding: 5px 5px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: white;
    font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--focus);
    outline: none;
}

.form-group { margin-bottom: 18px; }
label { font-weight: 500; margin-bottom: 6px; }

/* ——————————————————————
   CARDS / PANELS (Bootstrap style)
—————————————————————— */
.box, .card {
    background: var(--surface);
    padding: 20px;
     padding-bottom: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.box-header {
 
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

/* ——————————————————————
   TABLES (Bootstrap-like)
—————————————————————— */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

table thead {
    background: var(--primary);
    color: white;
}

table th, table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

table tbody tr:hover {
    background: #f1f5f9;
}

/* Action icons */
.table-actions a {
    margin-right: 8px;
}

/* ——————————————————————
   ALERTS (Bootstrap-like)
—————————————————————— */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius);
    font-weight: 500;
    margin-bottom: 20px;
}

.alert-success { background: #d1fae5; color: #065f46; }
.alert-info    { background: #dbeafe; color: #1e3a8a; }
.alert-warning { background: #fef9c3; color: #854d0e; }
.alert-danger  { background: #fee2e2; color: #b91c1c; }

/* ——————————————————————
   DROPDOWN (préservé)
—————————————————————— */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute;
    left: 0;
    min-width: 180px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius);
    display: none;
    padding: 10px 10px;
    box-shadow: var(--shadow);
    z-index: 2000;
}
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--text);
}
.dropdown-menu a:hover { background: #f1f5f9; }

/* ——————————————————————
   ACTION NAV BUTTON (texte bleu seulement)
—————————————————————— */
.action-nav-button {
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    padding: 4px 8px;
    border: none;
    cursor: pointer;
    transition: 0.25s;
}

.action-nav-button:hover {
    color: var(--primary-hover);
    transform: translateY(-1px);
}

.action-nav-button:active {
    transform: scale(0.97);
}

.user-nav {
    display: flex !important;
    align-items: center;
    gap: 20px; /* espace entre "compte" et "accountant panel" */
}

.user-nav > li > a {
    display: flex;
    align-items: center;
    padding: 10px 10px;
}

.user-nav i {
    margin-right: 5px;
}
