/* Core Design System for Equipment Loan Management System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* === Paleta Livres Pensadores — Extraída da Logo === */
    --primary: #1a2e6b;           /* Azul Marinho Profundo (borda circular) */
    --primary-hover: #142258;     /* Marinho mais escuro (hover) */
    --primary-rgb: 26, 46, 107;
    --secondary: #2d5fbe;         /* Azul Royal (fundo do círculo) */
    --secondary-hover: #2451a8;
    --accent: #c9a227;            /* Ouro Maçônico (esquadro, G, pena) */
    --accent-hover: #b38f20;
    --accent-rgb: 201, 162, 39;

    /* Status colors */
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --info: #0284c7;

    /* Base UI */
    --dark: #0a1535;              /* Azul Quase Preto */
    --light: #eef2fb;             /* Azul Claro Suave (fundo geral) */
    --border-color: #c8d5ef;      /* Borda azulada suave */
    --card-bg: #ffffff;
    --sidebar-bg: rgba(10, 21, 53, 0.97);   /* Azul marinho profundo */
    --sidebar-text: #94aad4;
    --sidebar-active: #ffffff;
    --text-primary: #0e1d4a;
    --text-secondary: #4a5e8a;
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    background-color: var(--light);
    color: var(--text-primary);
    overflow-x: hidden;
    max-width: 100vw;
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: 260px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(10px);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
}

.sidebar-brand i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-right: 0.75rem;
}

.sidebar-brand span {
    font-weight: 700;
    letter-spacing: -0.5px;
    font-size: 1.15rem;
}

.sidebar-user {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
}

.sidebar-user .avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 2px solid rgba(201, 162, 39, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 0.75rem;
}

.sidebar-user .info {
    line-height: 1.2;
}

.sidebar-user .info .name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-user .info .role {
    color: var(--sidebar-text);
    font-size: 0.75rem;
}

.sidebar-menu {
    list-style: none;
    padding: 1.5rem 0.75rem;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
}

.sidebar-menu .menu-header {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 0.5rem 1rem 0.5rem;
}

.sidebar-menu .nav-item {
    margin-bottom: 0.25rem;
}

.sidebar-menu .nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--sidebar-text);
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 0.925rem;
}

.sidebar-menu .nav-link:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
}

.sidebar-menu .nav-link i {
    margin-right: 0.85rem;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: all 0.2s ease;
}

.sidebar-menu .nav-link:hover i {
    color: var(--primary);
    transform: scale(1.1);
}

.sidebar-menu .nav-link.active {
    color: var(--sidebar-active);
    background: linear-gradient(135deg, rgba(45, 95, 190, 0.25), rgba(201, 162, 39, 0.10));
    border-left: 4px solid var(--accent);
    font-weight: 600;
}

.sidebar-menu .nav-link.active i {
    color: var(--primary);
}

/* Main Content Area */
.main-content {
    margin-left: 260px;
    min-height: 100vh;
    padding: 2rem;
    transition: margin 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

/* Premium Layout Components */
.navbar-custom {
    background-color: transparent;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.25rem;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.75px;
    color: var(--dark);
    margin-bottom: 0.25rem;
    position: relative;
    display: inline-block;
}

.page-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 36px;
    height: 3px;
    background: linear-gradient(to right, var(--accent, #c9a227), transparent);
    border-radius: 2px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
    padding-top: 0.25rem;
}

/* Premium Cards */
.card-premium {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    overflow: hidden;
    margin-bottom: 1.75rem;
}

.card-premium:hover {
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

.card-premium .card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-premium .card-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-premium .card-body {
    padding: 1.5rem;
}

/* Dashboard Statistic Card */
.stat-card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -5px rgba(0, 0, 0, 0.08);
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-card .stat-label {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-card .stat-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

/* Custom interactive UI buttons */
/* Primary Action Button (Marinho + Ouro) */
.btn-indigo {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-weight: 600;
    border: none;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(26, 46, 107, 0.3);
    transition: all 0.3s ease;
}

.btn-indigo:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary-hover));
    color: white;
    box-shadow: 0 6px 18px rgba(26, 46, 107, 0.4);
    transform: translateY(-1px);
}

.btn-indigo:active {
    transform: translateY(0);
}

.btn-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Forms styling */
.form-control, .form-select {
    padding: 0.625rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

/* Badges styling */
.badge-premium {
    padding: 0.45em 0.85em;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 8px;
    letter-spacing: 0.2px;
}

/* DataTables and Tables Premium Customization */
.table-premium {
    width: 100% !important;
    border-collapse: separate;
    border-spacing: 0 8px;
    margin-top: 0 !important;
}

.table-premium th {
    background-color: var(--light) !important;
    color: var(--text-secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border: none;
    padding: 12px 16px !important;
}

.table-premium tbody tr {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.015);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.table-premium tbody tr:hover {
    background-color: rgba(99, 102, 241, 0.01) !important;
    transform: scale(1.002);
}

.table-premium td {
    padding: 16px !important;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.925rem;
    color: var(--text-primary);
    vertical-align: middle;
}

.table-premium td:first-child {
    border-left: 1px solid var(--border-color);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table-premium td:last-child {
    border-right: 1px solid var(--border-color);
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Print labels layout style */
@media print {
    body {
        background-color: #ffffff;
        color: #000000;
    }
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    .no-print {
        display: none !important;
    }
}
