/* public/assets/css/modern.css */

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #841711;
    --primary-hover: #a31d16;
    --secondary-color: #1C1C1C;
    --accent-color: #FD9E00;
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --text-color: #333333;
    --text-muted: #6c757d;
    --border-radius: 12px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    color: var(--secondary-color);
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 1.5rem;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

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

.btn-warning {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-warning:hover {
    background-color: #e58e00;
    border-color: #e58e00;
    color: #fff;
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
}

.table thead th {
    background-color: var(--secondary-color);
    color: #fff;
    border: none;
    padding: 1rem;
    font-weight: 500;
}

.table thead th:first-child {
    border-top-left-radius: var(--border-radius);
}

.table thead th:last-child {
    border-top-right-radius: var(--border-radius);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

.table-hover tbody tr:hover {
    background-color: rgba(253, 158, 0, 0.05);
}

/* Form Controls */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 0.6rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(253, 158, 0, 0.25);
}

/* Stat Cards */
.stat-card {
    border-left: none !important;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.stat-card.border-success::before {
    background-color: #198754;
}

.stat-card.border-warning::before {
    background-color: var(--accent-color);
}

.stat-card.border-primary::before {
    background-color: var(--primary-color);
}

.stat-card h1 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    font-weight: 700;
}

/* Login Page Specifics */
.login-card {
    max-width: 400px;
    width: 100%;
    border-radius: 16px;
}

.login-bg {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bottom Navbar (Mobile) */
.bottom-navbar {
    background-color: var(--secondary-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 1040;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.bottom-navbar .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    transition: var(--transition);
}

.bottom-navbar .nav-item i {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

.bottom-navbar .nav-item:hover {
    color: rgba(255, 255, 255, 0.9);
}

.bottom-navbar .nav-item.active {
    color: var(--accent-color);
}

/* Offcanvas Styling */
.offcanvas-bottom {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    max-height: 80vh;
    z-index: 1045;
}

/* History Card Mobile */
.history-card-mobile {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    background-color: var(--card-bg);
    box-shadow: var(--box-shadow);
}

.history-card-mobile .card-body {
    padding: 1rem;
}

.history-card-mobile .card-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

/* Adjust content padding for mobile to prevent overlap with bottom navbar */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px;
    }
}