/* ==========================
   Global Dark Theme for Billing Software
=========================== */

/* Body & General */
body,
html {
    background: #0d1b2a;
    color: #fff;
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Navbar */
.navbar,
.navbar-dark {
    background: #0d1b2a !important;
}

.navbar .nav-link,
.navbar .navbar-brand {
    color: #fff !important;
}

.navbar .nav-link:hover,
.navbar .navbar-brand:hover {
    color: #1b6ca8 !important;
}

/* Cards */
.card {
    background: #1b263b !important;
    color: #fff !important;
    border: none;
    border-radius: 12px;
}

/* Buttons */
.btn-primary {
    background: #1b6ca8 !important;
    border: none !important;
    color: #fff;
}

.btn-primary:hover {
    background: #145a86 !important;
}

.btn-light {
    background: #f8f9fa !important;
    color: #0d1b2a !important;
}

/* Forms */
.form-control {
    background: #0d1b2a !important;
    color: #fff !important;
    border: 1px solid #415a77 !important;
}

.form-control:focus {
    background: #0d1b2a !important;
    color: #fff !important;
    border-color: #778da9 !important;
    box-shadow: none !important;
}

/* Alerts */
.alert {
    background: #d90429 !important;
    color: #fff !important;
    border: none;
}

/* Dashboard & Pages container */

.table thead th {
    color: #fff;
    border-bottom: 1px solid #415a77;
}

.table td,
.table th {
    vertical-align: middle;
}

.dataTables_wrapper .dataTables_filter input {
    background: #0d1b2a;
    color: #fff;
    border: 1px solid #415a77;
    border-radius: 6px;
    padding: 5px 10px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: #fff !important;
    background: none !important;
    border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: #1b6ca8 !important;
    border-radius: 6px;
}

/* Navbar Customizations */
.navbar-custom {
    background-color: #0b1523;
}

.navbar-brand-custom {
    letter-spacing: 1px;
    font-family: 'Anek Tamil', sans-serif;
}

.navbar-nav .nav-link {
    transition: color 0.2s ease, transform 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #1b9ce2 !important;
    transform: translateY(-1px);
}

/* Invoice Section Styles */
.invoice-product-unit-width {
    width: 50%;
}

.invoice-price-width {
    width: 15%;
}

.invoice-gst-width {
    width: 15%;
}

.invoice-total-width {
    width: 20%;
}

.card-customer-form {
    max-width: 900px;
    background: #1b263b;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    padding: 30px;
}

.img-product-thumb {
    max-height: 120px;
    object-fit: contain;
}

/* Login Page Styles */
.login-body {
    background: #0d1b2a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-card {
    background: #1b263b;
    padding: 2rem;
    border-radius: 12px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.login-card .form-control {
    background: #0d1b2a;
    color: #fff;
    border: 1px solid #415a77;
}

.login-card .form-control:focus {
    background: #0d1b2a;
    color: #fff;
    border-color: #778da9;
    box-shadow: none;
}

.login-card .btn-primary {
    background: #1b6ca8;
    border: none;
}

.login-card .btn-primary:hover {
    background: #145a86;
}

.login-card .alert {
    background: #d90429;
    color: #fff;
    border: none;
}

/* Invoice View Styles */
.invoice-view-table th,
.invoice-view-table td {
    vertical-align: top;
}

.invoice-view-list {
    margin: 0;
    padding-left: 1.2rem;
}

.invoice-hash-width {
    width: 5%;
}

.invoice-product-width {
    width: 40%;
}

.invoice-qty-width {
    width: 10%;
}

.invoice-rate-width {
    width: 15%;
}

.invoice-gst-width {
    width: 10%;
}

.invoice-total-width {
    width: 15%;
}

.invoice-total-width-view {
    width: 14%;
}

.invoice-action-width {
    width: 10%;
}

.dashboard-container {
    background-color: #0d1b2a;
}

.card-sales {
    background: #1b263b;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
}

.card-header-custom {
    background: #0d1b2a;
    border-bottom: 1px solid #415a77;
}

.table-sales {
    color: #fff;
}