/* ============================================
   Inventar RFID - Custom Styles
   ============================================ */

:root {
    --primary: #1a237e;
    --primary-light: #534bae;
    --bg-light: #f5f7fa;
}

body {
    background-color: var(--bg-light);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* --- Navbar --- */
.navbar {
    background: linear-gradient(135deg, var(--primary), var(--primary-light)) !important;
}

.navbar-brand {
    font-size: 1.15rem;
    letter-spacing: 0.3px;
}

/* --- Login page --- */
.login-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.login-icon i {
    font-size: 2rem;
    color: #fff;
}

/* --- Stat Cards --- */
.stat-card {
    border-radius: 12px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08) !important;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* --- Cards --- */
.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-header {
    padding: 0.85rem 1rem;
}

/* --- Tables --- */
.table > thead {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.table > tbody > tr {
    transition: background-color 0.1s;
}

.cursor-pointer {
    cursor: pointer;
}

/* --- Badges --- */
.badge {
    font-weight: 500;
    letter-spacing: 0.2px;
    padding: 0.35em 0.65em;
}

/* --- Forms --- */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(26, 35, 126, 0.15);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* --- Buttons --- */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* --- Alerts --- */
.alert {
    border-radius: 10px;
    border: none;
}

/* --- Pagination --- */
.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-link {
    color: var(--primary);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    main.container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .stat-card .card-body {
        padding: 0.75rem;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* --- Pagina principala --- */
.home-nav {
    background: #fff;
    border-bottom: 1px solid #e6e8ee;
}

.home-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
}

.home-hero .lead {
    color: rgba(255, 255, 255, 0.88);
    max-width: 38rem;
}

.home-kicker {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.home-step {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.home-feature i {
    font-size: 1.4rem;
    color: var(--primary);
}

.home-device {
    display: block;
    width: 100%;
    height: auto;
    background: #fff;
    border-radius: 1.5rem;
    padding: 0.65rem;
    box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.22);
}

.home-figure {
    margin: 0;
}

.home-shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0.85rem;
    border: 1px solid #e6e8ee;
    box-shadow: 0 0.75rem 1.75rem rgba(26, 35, 126, 0.12);
    background: #fff;
}

.home-phone {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.home-caption {
    font-size: 0.92rem;
}

/* --- Footer --- */
footer {
    font-size: 0.8rem;
}

/* --- Code/mono --- */
code {
    font-size: 0.82rem;
    color: #5f6368;
}

/* --- List group --- */
.list-group-item {
    border-left: none;
    border-right: none;
}

.list-group-item:first-child {
    border-top: none;
}
