:root {
    --primary-color: #0d6efd;
    /* Bootstrap Primary Blue */
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-bg);
    color: var(--dark-text);
}

.card {
    border: none;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin-bottom: 20px;
}

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

.brand-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Auth Page Specifics */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.auth-card .brand-logo {
    font-size: 26px;
    color: var(--primary-color);
    font-weight: 700;
}

.auth-card .form-control {
    border-radius: 0 8px 8px 0;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.auth-card .form-control:focus {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.2);
    border-color: var(--primary-color);
}

.auth-card .input-group-text {
    border-radius: 8px 0 0 8px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    color: var(--primary-color);
}

.auth-card .btn {
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.auth-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.nav-pills .nav-link {
    color: var(--secondary-color);
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-pills .nav-link.active {
    background: var(--primary-color);
    color: white !important;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

/* Sidebar & Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #fff;
    color: var(--dark-text);
    transition: all 0.3s;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
    min-height: 100vh;
}

#sidebar.active {
    margin-left: -250px;
}

#sidebar .sidebar-header {
    padding: 20px;
    background: var(--primary-color);
    color: #fff;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 10px 20px;
    font-size: 1.1em;
    display: block;
    color: var(--dark-text);
    text-decoration: none;
    transition: 0.3s;
}

#sidebar ul li a:hover,
#sidebar ul li a.active {
    color: var(--primary-color);
    background: #e9ecef;
    border-right: 4px solid var(--primary-color);
}

#sidebar ul li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

#content {
    width: 100%;
    padding: 20px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* Dashboard Stats Cards */
.stats-card {
    transition: transform 0.3s;
}

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

.stats-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

.top-selling-table img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
}

/* Autocomplete Suggestions */
.autocomplete-suggestions {
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 5px 5px;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #e9ecef;
}

.suggestion-item div {
    line-height: 1.2;
}

.suggestion-item .small {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Hide number input spinners (top/down buttons) */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: none;
}

/* Billing Search Results (Inline, not overlay) */
.billing-search-results {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.billing-search-results .suggestion-item {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f3f5;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: background 0.2s;
}

.billing-search-results .suggestion-item:hover {
    background: #e9ecef;
}

.billing-search-results .suggestion-item strong {
    color: var(--primary-color);
    font-size: 1rem;
}

.billing-search-results .suggestion-item .small {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Step Progress Bar */
.step-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.step-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.step-item {
    position: relative;
    z-index: 2;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
    font-weight: 600;
    color: #9e9e9e;
    transition: all 0.3s ease;
}

.step-item.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

.step-item.completed {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.step-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.75rem;
    margin-top: 5px;
    color: #9e9e9e;
}

.step-item.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.step-content-panel {
    display: none;
}

.step-content-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}