body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(115, 170, 255, 0.1), transparent 28%),
        linear-gradient(180deg, #f7faff 0%, #eef3fa 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #0f172a;
}

.container {
    flex: 1;
}

.app-navbar {
    background: linear-gradient(135deg, #071f3a 0%, #0b2748 45%, #143867 100%);
    box-shadow: 0 18px 34px rgba(7, 31, 58, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.35rem;
    color: #fff;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.app-navbar .navbar-nav {
    gap: 0.2rem;
}

.app-navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.82);
    border-radius: 12px;
    padding: 0.7rem 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.app-navbar .navbar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.app-navbar .navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(115, 170, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.app-navbar .navbar-nav .nav-link i {
    margin-right: 0.45rem;
}

.app-user-menu {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.12);
}

.app-main {
    padding-top: 1.1rem;
    padding-bottom: 2rem;
}

.app-flash-stack {
    padding-top: 1rem;
}

.app-footer {
    background: #071f3a;
    color: rgba(255, 255, 255, 0.78);
    padding: 0.9rem 0;
    margin-top: auto;
    font-size: 0.92rem;
}

/* Login page styles */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.login-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 400px;
}

.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 0.5rem;
}

/* Dashboard styles */
.dashboard-card {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Table styles */
.table-container {
    background-color: #fff;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
    padding: 1rem;
    margin-bottom: 2rem;
}

.table-responsive {
    overflow-x: auto;
}

.table th {
    background-color: #f8fafc;
    color: #334155;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-bottom-width: 1px;
}

.table td {
    vertical-align: middle;
    color: #1f2937;
}

/* Form styles */
.form-container {
    background-color: #fff;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-title {
    margin-bottom: 1.5rem;
    color: #0b2748;
}

.btn-primary {
    background: linear-gradient(135deg, #0b2748 0%, #153a7a 100%);
    border-color: #153a7a;
    box-shadow: 0 10px 18px rgba(11, 39, 72, 0.18);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #071f3a 0%, #0f2854 100%);
    border-color: #0f2854;
}

.btn {
    border-radius: 12px;
    font-weight: 600;
}

.btn-success {
    box-shadow: 0 10px 18px rgba(22, 163, 74, 0.15);
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-info,
.btn-outline-danger {
    border-width: 1px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .login-box {
        padding: 1.5rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
}

/* Alert styles */
.alert {
    border-radius: 16px;
    border: 0;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

/* Card styles for inventory items */
.item-card {
    border-radius: 18px;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.item-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Filter section styles */
.filter-section {
    background-color: #fff;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

/* Badge styles */
.badge-primary {
    background-color: #007bff;
}

.badge-success {
    background-color: #28a745;
}

.badge-danger {
    background-color: #dc3545;
}

.badge-warning {
    background-color: #ffc107;
    color: #212529;
}

.badge-info {
    background-color: #17a2b8;
}

/* Action buttons */
.action-buttons .btn {
    margin-right: 0.5rem;
}

.action-buttons .btn:last-child {
    margin-right: 0;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

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




/* Dashboard Enhancements */
.dashboard-card {
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border: none;
    border-radius: 15px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1), -5px -5px 15px rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease-in-out;
}

.dashboard-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.15), -10px -10px 20px rgba(255, 255, 255, 0.8);
}

.dashboard-icon {
    font-size: 3rem; /* Increased icon size */
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    font-size: 2rem; /* Larger number */
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    font-size: 0.9rem; /* Slightly smaller text */
    color: #555;
}

.dashboard-card .btn {
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Specific icon colors */
.dashboard-icon.text-primary { color: #0d6efd; }
.dashboard-icon.text-success { color: #198754; }
.dashboard-icon.text-danger { color: #dc3545; }
.dashboard-icon.text-warning { color: #ffc107; }

/* Quick Access Card */
.card-header.bg-primary {
    background: linear-gradient(to right, #007bff, #0056b3) !important;
    border-radius: 15px 15px 0 0;
}

.card-body .btn-block {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.card-body .btn-block i {
    margin-right: 0.75rem; /* Increased space */
    font-size: 1.1rem;
}

.card-body .btn-block:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}



/* Navbar Active Tab Styling - Reference Image */
.navbar-dark .navbar-nav .nav-item.active .nav-link {
    font-weight: bold;
    background-color: #005cbf; /* Lighter blue background for active tab */
    border-radius: 5px;
    color: #ffffff !important; /* Ensure text is white */
}

.navbar-dark .navbar-nav .nav-link i {
    margin-right: 5px; /* Add space between icon and text */
}


/* Dashboard Typography & Alignment Enhancements */
.dashboard-card-stat .stat-value {
    font-size: 2.2rem; /* Slightly adjusted size */
    font-weight: 700; /* Bolder */
    line-height: 1.1;
}

.dashboard-card-stat .stat-label {
    font-size: 0.95rem; /* Slightly larger label */
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 0;
}

.dashboard-card-stat .stat-icon {
    font-size: 2.8rem; /* Slightly adjusted icon size */
    opacity: 0.7;
}

.dashboard-card-stat a small {
    font-weight: 500;
}

.chart-container h5 {
    font-weight: 600; /* Bolder chart titles */
    color: #495057; /* Darker title color */
    margin-bottom: 1rem; /* Consistent margin */
}

.table-transactions th {
    font-weight: 600; /* Bolder table headers */
    text-align: left; /* Align header text left */
    vertical-align: middle;
}

.table-transactions td {
    vertical-align: middle; /* Align cell content vertically */
    text-align: left; /* Align cell text left */
}

/* Align specific columns if needed, e.g., quantity */
.table-transactions td:nth-child(4), /* Quantity column */
.table-transactions th:nth-child(4) {
    text-align: center; /* Center align quantity */
}

.card-header h5 {
     font-weight: 600; /* Bolder card headers */
     color: #343a40;
}

/* Main Dashboard Title */
.container > h2 {
    font-weight: 700; /* Bolder main title */
    color: #343a40;
    margin-bottom: 1.5rem !important; /* Ensure consistent bottom margin */
}

.card {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.card-header {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    padding: 1rem 1.25rem;
}

.card-body {
    padding: 1.25rem;
}

.form-control,
.form-select {
    min-height: 48px;
    border-radius: 12px;
    border-color: #d6deea;
}

.form-control:focus,
.form-select:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.form-label {
    font-weight: 600;
    color: #334155;
}

.nav-tabs {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    gap: 0.5rem;
}

.nav-tabs .nav-link {
    border: 0;
    border-radius: 14px 14px 0 0;
    color: #475569;
    font-weight: 600;
}

.nav-tabs .nav-link.active {
    color: #1d4ed8;
    background: #fff;
    box-shadow: 0 -1px 0 rgba(255,255,255,1), 0 0 0 1px rgba(148, 163, 184, 0.16);
}

/* Authentication */
.auth-shell {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.auth-card.auth-card-wide {
    max-width: 520px;
}

.auth-header {
    background: linear-gradient(135deg, #071f3a 0%, #153a7a 100%);
    color: #fff;
    padding: 2rem 2rem 1.5rem;
}

.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    margin-bottom: 1rem;
}

.auth-title {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
}

.auth-subtitle {
    margin: 0.75rem 0 0;
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.auth-body {
    background: #fff;
    padding: 2rem;
}

.auth-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.45rem;
}

.auth-input {
    min-height: 52px;
    border-radius: 14px;
    border: 1px solid #d6dce5;
    padding: 0.85rem 1rem;
    box-shadow: none;
}

.auth-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.12);
}

.auth-primary-btn {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #0b2748 0%, #153a7a 100%);
    box-shadow: 0 16px 30px rgba(11, 39, 72, 0.22);
}

.auth-primary-btn:hover {
    background: linear-gradient(135deg, #071f3a 0%, #0f2854 100%);
}

.auth-secondary-link {
    color: #153a7a;
    font-weight: 600;
    text-decoration: none;
}

.auth-secondary-link:hover {
    color: #0f2854;
    text-decoration: underline;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #6b7280;
    font-size: 0.85rem;
    margin: 1.25rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

@media (max-width: 576px) {
    .auth-header,
    .auth-body {
        padding: 1.5rem;
    }

    .auth-title {
        font-size: 1.55rem;
    }
}
