
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
body {
    background: #f4f4f4;
}
.login-box {
    background: #fff;
    padding: 25px;
    width: 320px;
    margin: 80px auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
}
.login-box input[type="email"],
.login-box input[type="password"] {
    width: 93%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.login-box .remember {
    display: flex;
    align-items: center;
    margin: 10px 0;
}
.login-box button {
    width: 100%;
    padding: 10px;
    background: #007bff;
    border: none;
    color: #fff;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
}
.login-box button:hover {
    background: #0056b3;
}
.sidebar {
    width: 230px;
    height: 100vh;
    background: #1e1e2f;
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    padding: 20px;
}
.sidebar .logo {
    text-align: center;
    margin-bottom: 40px;
    font-size: 22px;
    color: #00eaff;
}
.sidebar a {
    display: block;
    padding: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #cfcfcf;
    background: #2a2a3d;
    border-radius: 5px;
}
.sidebar a:hover {
    background: #00eaff;
    color: #000;
}
.sidebar .logout {
    margin-top: 40px;
    background: red;
    color: #fff;
}
.topbar {
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}
.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}
.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0,0,0,0.1);
    text-align: center;
}
.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.card p {
    font-size: 28px;
    font-weight: bold;
}
.product-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}
.product-table th {
    background: #1f2333;
    color: white;
    padding: 12px;
    font-size: 16px;
    text-align: left;
}
.product-table td {
     padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 15px;
}
.product-table tr:hover {
    background: #f4f4f4;
}
.action-btn.delete { background: #d9534f; }
.action-btn.update { background: #0275d8; }
.action-btn:hover { opacity: 0.8; }
.action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: white;
    margin-right: 6px;
    font-size: 14px;
}
.product-table tr:last-child td {
    border-bottom: none;
}
.probtn-flex {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.add {
    background: #00eaff;
    color: #000;
    padding: 10px 18px;
    border: none;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
    transition: 0.3s;
    margin-bottom: 15px;
}
.add:hover {
    background: #00c2cc;
    transform: translateY(-2px);
}
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}
.product-form-box {
    background: white;
    padding: 25px;
    width: 450px;
    border-radius: 10px;
}
@keyframes show {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.product-form input,
.product-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}
.product-form input:focus,
.product-form textarea:focus {
    border-color: #00eaff;
    box-shadow: 0 0 5px rgba(0, 234, 255, 0.5);
}
.btn {
    padding: 10px 20px;
    border: none;
    background: #1f2333;
    color: white;
    border-radius: 5px;
}
.btn:hover {
    background: #00c6d4;
}
#closebtn {
    background: red;
    color: #fff;
}
#closebtn:hover {
    background: #cc0000;
}
.add {
    background: #00eaff;
    color: #000;
    padding: 10px 18px;
    border: none;
    font-size: 15px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0px 2px 5px rgba(0,0,0,0.2);
    transition: 0.3s;
    margin-bottom: 15px;
}
.add:hover {
    background: #00c2cc;
}
.update-container {
    width: 450px;
    margin: 40px auto;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    font-family: Arial, sans-serif;
}

.update-container h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.update-container input[type="text"],
.update-container textarea,
.update-container input[type="file"] {
    width: 100%;
    padding: 10px;
    margin-top: 7px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
}

.update-container textarea {
    height: 80px;
    resize: none;
}

.update-container img {
    border-radius: 8px;
    margin-bottom: 10px;
}

.update-btn {
    width: 100%;
    padding: 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.3s;
}

.update-btn:hover {
    background: #0056b3;
}
.dropdown-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding-left: 20px;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

.dropdown:hover .dropdown-content {
    max-height: 200px;
    opacity: 1;
}
.container {
    max-width: 1100px;
    margin: 40px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-left: 321px;
}
.card-header {
    background: #007bff;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.card-header h2 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.card-body {
    padding: 30px;
}

/* ====== Form Layout ====== */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0,123,255,0.3);
}

/* ====== Product Details ====== */
.product-details {
    background: #f9fafc;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.product-details h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #007bff;
}

.product-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.info-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

.info-item span {
    display: block;
    color: #888;
    font-size: 13px;
    margin-bottom: 5px;
}

.info-value {
    font-weight: 600;
    color: #333;
}

/* ====== Pricing Section ====== */
.pricing-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 25px;
        margin-top: 19px;
}

.pricing-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pricing-item label {
    font-weight: 500;
    margin-bottom: 6px;
    color: #333;
}

.pricing-item input {
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    outline: none;
}

.total-display {
    background: #e9f7ef;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: #28a745;
    font-size: 16px;
}

/* ====== Buttons ====== */
button {
    cursor: pointer;
    border: none;
    border-radius: 8px;
    transition: 0.3s;
}

.add-btn {
    background: #007bff;
    color: #fff;
    padding: 12px 25px;
    font-size: 16px;
    display: block;
    margin: 0 auto 30px auto;
}

.add-btn:hover {
    background: #0056b3;
}

.generate-btn {
    background: #28a745;
    color: #fff;
    padding: 14px 30px;
    font-size: 16px;
    display: block;
    margin: 20px auto;
}

.generate-btn:hover {
    background: #1e7e34;
}

/* ====== Table ====== */
.taken-products {
    margin-top: 20px;
}

.taken-products h3 {
    font-size: 18px;
    font-weight: 600;
    color: #007bff;
    margin-bottom: 15px;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.product-table th, .product-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    font-size: 15px;
}

.product-table th {
    font-weight: 600;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 6px;
    margin: 0 2px;
    font-size: 14px;
}

.edit-btn {
    background: #ffc107;
    color: #fff;
}

.edit-btn:hover {
    background: #e0a800;
}

.delete-btn {
    background: #dc3545;
    color: #fff;
}

.delete-btn:hover {
    background: #c82333;
}

.grand-total {
    text-align: right;
    font-size: 18px;
    font-weight: 600;
    color: #28a745;
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .form-row,
    .pricing-section {
        flex-direction: column;
    }
}
.invoice-container {
    background: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    margin: auto;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
.company-details h2 {
    color: #007bff;
    margin: 0;
}
.company-details p {
    font-size: 14px;
    color: #666;
}
.invoice-details {
    text-align: right;
}
.invoice-details h3 {
    margin: 0;
    color: #333;
}
.customer-info {
    margin-bottom: 30px;
}
.customer-info h4 {
    margin: 0 0 5px;
    color: #007bff;
}
table {
    width: 100%;
    border-collapse: collapse;
}
table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}
table th {
    background: #007bff;
    color: white;
}
.total-section {
    margin-top: 30px;
    text-align: right;
}
.total-section h3 {
    color: #007bff;
}
.print-btn {
    display: block;
    margin: 30px auto 0;
    padding: 10px 30px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.print-btn:hover {
    background: #0056b3;
}
.accounts-header {
    text-align: center;
    margin-bottom: 30px;
}

.accounts-header h2 {
    font-size: 28px;
    color: #333;
}

.accounts-header p {
    color: #777;
    margin-top: 8px;
}

.accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.account-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.account-card:hover {
    background: #2e86de;
    color: white;
    transform: translateY(-5px);
}

.account-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.account-card p {
    font-size: 14px;
    color: inherit;
}
.supplier-header {
    margin-bottom: 20px;
}

.supplier-header h2 {
    color: #333;
    font-size: 26px;
    margin-bottom: 5px;
}

.supplier-header p {
    color: #666;
    font-size: 14px;
}

.ledger-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ledger-table thead {
    background: #2b2f77;
    color: white;
}

.ledger-table th, 
.ledger-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.ledger-table tr:hover {
    background-color: #f1f1f1;
}

.ledger-table td:nth-child(7) {
    color: green;
}

.ledger-table td:nth-child(8) {
    color: red;
}
.update-content {
  max-width: 600px;
  margin: 40px auto;
  background: #ffffff;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.update-content h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 22px;
}

.update-form-box input,
.update-form-box select {
  width: 100%;
  padding: 10px 12px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  transition: 0.3s;
}

.update-form-box input:focus,
.update-form-box select:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.3s;
}

.btn:hover {
  background: #0056b3;
}

a.btn {
  background: red;
}

a.btn:hover {
  background: #b32d2e;
}
.payment-section {
        background: #ffffff;
    padding: 20px 25px;
    /* margin-top: 25px; */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    /* width: 350px; */
    display: flex;
    justify-content: space-around;
}
.payment-flex {
    width: 47%;
}
.payment-section label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #333;
    font-weight: 600;
}

.payment-section input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #d0d0d0;
    font-size: 16px;
    transition: 0.2s;
}

.payment-section input:focus {
    border-color: #4a8dfc;
    box-shadow: 0 0 6px rgba(74,141,252,0.3);
    outline: none;
}
.main-content {
    margin-left: 240px;
    padding: 20px;
    font-family: "Poppins", sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
}
.user-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Label + Input wrap */
.form-box {
    display: flex;
    flex-direction: column;
}

/* Make button full width in next row */
.user-form button {
    grid-column: span 2;
    width: 100%;
    padding: 12px;
    border: none;
    background: #3498db;
    color: #fff;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}

.user-form button:hover {
    background: #217dbb;
}

/* Normal input styling */
.user-form input,
.user-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #bbb;
    border-radius: 8px;
    font-size: 15px;
}

/* Responsive — Mobile par 1 per line */
@media (max-width: 768px) {
    .user-form {
        grid-template-columns: 1fr;
    }
    .user-form button {
        grid-column: span 1;
    }
}
/* Popup background */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    display: none;
    z-index: 1000;
}

/* Form box */
.product-form-box {
    width: 630px;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

/* Inputs */
.product-form-box input,
.product-form-box select {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

/* Buttons */
.product-form-box button {
    background: #0099ff;
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.product-form-box button:hover {
    background: #0077cc;
}

/* Error Box */
.error-box {
    background: #ffe5e5;
    border-left: 5px solid red;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.error-box p {
    margin: 0;
    color: #d00000;
    font-size: 14px;
    padding: 3px 0;
}
a.btn {
    background: red;
    text-align: center;
    width: 170px;
}
.payment-flex textarea {
    width: 100%;
    height: 120px;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #f9f9f9;
    font-size: 15px;
    resize: vertical;
    outline: none;
    transition: all 0.2s ease-in-out;
}

.payment-flex textarea:focus {
    border-color: #4a90e2;
    background: #fff;
    box-shadow: 0 0 4px rgba(74, 144, 226, 0.4);
}

.payment-flex label {
    font-weight: bold;
    margin-bottom: 6px;
    display: block;
}
