/* =======================
   Variables & Base Theme
   ======================= */
:root {
    --color-bg: #f9fafb;
    --color-text: #1e293b;
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-success: #065f46;
    --color-error: #991b1b;
    --radius: 10px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* =======================
   Base & Typography
   ======================= */
body, html {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* =======================
   Links
   ======================= */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover,
a:focus {
    color: var(--color-primary-hover);
    text-decoration: none;
}

/* =======================
   Navbar
   ======================= */
.navbar {
    background-color: #fff;
    box-shadow: var(--shadow);
    border-radius: 0 0 var(--radius) var(--radius);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    color: #111827 !important;
    letter-spacing: -0.5px;
}

.navbar-light .navbar-toggler {
    border: none;
}
.navbar-light .navbar-toggler:focus {
    box-shadow: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #8a8a8a;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}
.navbar-nav .nav-link {
    position: relative;
}
.navbar-nav .nav-link.active {
    color: #374151;
}



/* =======================
   Container
   ======================= */
.container {

    padding: 1rem 2rem;
}

/* =======================
   Alerts
   ======================= */
.alert {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-weight: 500;
    font-size: 1rem;
}

.alert-success {
    background-color: #d1fae5;
    color: var(--color-success);
}

.alert-danger {
    background-color: #fee2e2;
    color: var(--color-error);
}

.btn-close {
    filter: brightness(0.5);
}
.btn-close:hover {
    filter: brightness(1);
}

/* =======================
   Footer
   ======================= */
footer {
    background-color: #e0e7ff;
    font-size: 0.875rem;
    color: #4b5563;
    border-top: 1px solid #c7d2fe;
    user-select: none;
    text-align: center;
    padding: 1.5rem;
}

/* =======================
   Buttons
   ======================= */


/* =======================
   Inputs & Forms
   ======================= */
input,
select,
textarea {
    border-radius: var(--radius);
    border: 1px solid #cbd5e1;
    padding: 0.5rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 5px rgba(37, 99, 235, 0.5);
}

/* =======================
   Tables (optional)
   ======================= */
table.table {
    border-radius: var(--radius);
    overflow: hidden;
    background-color: #fff;
    box-shadow: var(--shadow);
}
table.table th,
table.table td {
    vertical-align: top;
    font-size: 10pt;
}

/* =======================
   Utilities (optional)
   ======================= */
.shadow-sm {
    box-shadow: var(--shadow) !important;
}
.rounded {
    border-radius: var(--radius) !important;
}


:focus-visible {
    outline: none !important;
}



.group-user {
    background: #e3e3e3;
    color: #5f5f5f;
}

.group-service {
    background: #fdeddd;
    color: #f9a756;
}

.group-editor {
    background: #fdeddd;
    color: #f9a756;
}

.group-admin {
    background: #cbf0eb;
    color: #2ab69b;
}

.group-developer {
    background: #f1d4ff;
    color: #ba29ff;
}

.group-superadmin {
    background: #e0d4fb;
    color: #6226ef;
}
