/* ==========================
   General Body & Container
   ========================== */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #f4f7fa;
    color: #333;
    line-height: 1.6;
    box-sizing: border-box;
}

.page-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

/* ==========================
   Page Titles
   ========================== */
h1 {
    font-size: 2em;
    color: #005826;
    margin-bottom: 25px;
    font-weight: 600;
    text-align: center;
}

/* ==========================
   Data Tables
   ========================== */
.data-table-container {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

table thead {
    background-color: #e8f5e9;
    color: #005826;
}

table th, table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

table th {
    font-weight: 600;
    font-size: 0.95em;
}

table td {
    font-size: 0.9em;
}

table tbody tr:last-child td {
    border-bottom: none;
}

table input[type="text"],
table input[type="number"] {
    padding: 8px 10px;
    font-size: 0.85em;
    min-width: 100px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* ==========================
   Buttons
   ========================== */
.print-button, .add-btn, .remove-btn, .proceed-btn {
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

/* Print button */
.print-button {
    background-color: #6c757d;
    color: #fff;
}

.print-button:hover {
    background-color: #5a6268;
}

/* Add/Remove Buttons */
.add-btn {
    background-color: #28a745;
    color: #fff;
}
.add-btn:hover {
    background-color: #218838;
}

.remove-btn {
    background-color: #dc3545;
    color: #fff;
}
.remove-btn:hover {
    background-color: #c82333;
}

/* Proceed Button */
.proceed-btn {
    background-color: #007bff;
    color: #fff;
    padding: 18px 40px;
    font-size: 1.3em;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,123,255,0.3);
}
.proceed-btn:hover {
    background-color: #0056b3;
    box-shadow: 0 6px 15px rgba(0,123,255,0.4);
}

/* ==========================
   Summary Section
   ========================== */
.summary-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 25px;
    padding: 20px 25px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.summary-section input[type="text"] {
    width: 150px;
    text-align: right;
    font-weight: bold;
    font-size: 1.2em;
    padding: 10px 15px;
    background-color: #e8f5e9;
    color: #005826;
    border: 1px solid #cce0d2;
}

/* ==========================
   Results Section
   ========================== */
.results-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-top: 40px;
    padding: 30px;
    border: 1px solid #e0e0e0;
    display: none;
}

.results-section h2 {
    text-align: center;
    color: #005826;
    margin-bottom: 30px;
    font-size: 1.8em;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.results-section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    height: 3px;
    width: 60px;
    background-color: #28a745;
    border-radius: 1.5px;
}

.results-section p {
    text-align: center;
    font-size: 1.2em;
    font-weight: 600;
}

/* ==========================
   Responsive Styles
   ========================== */
@media (max-width: 992px) {
    .form-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    .summary-section {
        flex-direction: column;
        align-items: flex-end;
    }
    .summary-section input[type="text"] {
        width: 120px;
        font-size: 1.1em;
        padding: 8px 10px;
    }
    .proceed-btn {
        padding: 15px 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 0 10px;
    }
    h1 {
        font-size: 1.7em;
        text-align: left;
    }
    .summary-section {
        justify-content: center;
    }
    .summary-section input[type="text"] {
        width: 100%;
        text-align: center;
    }
    .proceed-btn {
        width: 100%;
    }
    table th, table td {
        padding: 10px;
        font-size: 0.85em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5em;
    }
    .results-section h2 {
        font-size: 1.3em;
    }
    table th, table td {
        font-size: 0.8em;
    }
    .proceed-btn {
        font-size: 1em;
        padding: 12px 25px;
        min-width: unset;
    }
}
