/* -------------------------------------- */
/* GLOBAL SETTINGS */
/* -------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f7f9fc;
    margin: 0;
    padding: 0;
}

/* -------------------------------------- */
/* NAVIGATION */
/* -------------------------------------- */
nav {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 10px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: #ecf0f1;
    padding: 10px 15px;
    display: block;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.nav-links a:hover {
    background-color: #435d78;
}

/* Dropdown */
nav .dropdown-menu {
    display: none;
    position: absolute;
    background-color: #34495e;
    top: 100%;
    left: 0;
    min-width: 200px;
    border-radius: 5px;
    z-index: 1000;
    flex-direction: column;
}

nav .dropdown:hover .dropdown-menu {
    display: flex;
}

nav .dropdown-menu li a {
    padding: 10px 15px;
    color: #ecf0f1;
}

/* Responsive Nav */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .dropdown-menu {
        position: relative;
        top: 0;
    }

    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown.open .dropdown-menu {
        display: flex;
    }
}

/* -------------------------------------- */
/* SECTION TITLES */
/* -------------------------------------- */
.section-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 30px 0 10px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 5px;
}

/* -------------------------------------- */
/* LOGIN PAGE */
/* -------------------------------------- */
.login-container {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    width: 350px;
    text-align: center;
}

.login-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.login-form .input-group {
    position: relative;
    margin-bottom: 20px;
}

.login-form .input-group i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #aaa;
}

.login-form input {
    width: 100%;
    padding: 12px 40px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.login-form input:focus {
    border-color: #007bff;
}

.login-button {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.login-button:hover {
    background: #0056b3;
}

.error-message {
    color: #ff4d4f;
    margin-bottom: 15px;
    font-size: 14px;
}

.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* 100% screen height */
}

/* -------------------------------------- */
/* TABLES */
/* -------------------------------------- */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 6px 8px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background: #f4f4f4;
}

td input, td select {
    width: 80%;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

td input[type="number"] {
    width: 100px;
    text-align: right;
}

/* -------------------------------------- */
/* FORMS (General & Filter Forms) */
/* -------------------------------------- */
.filter-form, .form-group, .payment-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.filter-form select, 
.filter-form input, 
.form-group select, 
.form-group input[type="date"], 
.form-group textarea {
    padding: 6px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    transition: border-color 0.3s;
    min-width: 120px;
}

.filter-form button, .reset-btn, button[type="submit"], .payment-row button {
    height: 30px;
    padding: 0 10px;
    min-width: 80px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #fff;
}

button[type="submit"], .payment-row button {
    background: #28a745;
}

button[type="submit"]:hover, .payment-row button:hover {
    background: #218838;
}

.reset-btn, .filter-form button {
    background: red;
}

.reset-btn:hover, .filter-form button:hover {
    background: #b30000;
}

.form-group label {
    font-weight: bold;
}

.form-group input, .payment-row input, .payment-row select {
    min-width: 150px;
    padding: 5px;
    font-size: 14px;
}

/* -------------------------------------- */
/* PAGINATION */
/* -------------------------------------- */
.pagination {
    text-align: center;
    margin-top: 10px;
}

.pagination a {
    margin: 0 5px;
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}

.pagination a:hover {
    background: #0056b3;
}

/* -------------------------------------- */
/* OTHER UTILITIES */
/* -------------------------------------- */
.invoice-container, .payment-container {
    width: 70%;
    margin: 5px auto 20px 10%;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
}

.gray-row {
    background-color: #f2f2f2 !important;
}

.white-row {
    background-color: #ffffff !important;
}

.total-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    padding: 15px;
    border-top: 2px solid #ddd;
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
}

.total-section .form-group {
    flex: 1;
    min-width: 200px;
}

.success {
    color: red;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
}

.gst, .ait {
    color: gray;
}

.edited {
    color: red;
}

.tax-amount, .price-amount {
    font-size: 12px;
    color: gray;
    margin-top: 2px;
}


