/* Custom styles using Tailwind */
.header-bg {
    background-color: #10B981; /* Màu xanh lá cây */
}

.footer-bg {
    background-color: #059669; /* Màu xanh lá cây đậm hơn */
}

/* Fixed footer height */
footer {
    height: 80px;
}

.input-card {
    background-color: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.card-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    color: #374151; /* text-gray-800 */
    margin-bottom: 1rem;
    text-align: center;
}

.input-field {
    background-color: #fff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.75rem;
    width: 100%;
    font-size: 0.875rem; /* text-sm */
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.input-field:focus {
    border-color: #10B981; /* green-500 */
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

textarea.input-field {
    resize: vertical;
    min-height: 5rem;
}

.summary-box {
    background-color: #e0f2f7; /* Light blue background */
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.summary-title {
    font-size: 1rem;
    font-weight: 500;
    color: #4b5563;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Table styles */
#cash-flow-table th, #cash-flow-table td {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

#cash-flow-table tbody tr:hover {
    background-color: #f9fafb;
}

#cash-flow-table tbody tr.negative-balance {
    background-color: #fee2e2; /* Red-100 */
    color: #dc2626; /* Red-600 */
    font-weight: 600;
}

#cash-flow-table tbody tr.negative-balance td {
    border-color: #fca5a5; /* Red-300 */
}

/* Chart container styles */
.chart-container {
    position: relative;
    height: 400px; /* Fixed height for charts */
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .input-card {
        padding: 1rem;
    }
    .card-title {
        font-size: 1.125rem;
    }
    .summary-value {
        font-size: 1.25rem;
    }
    #cash-flow-table th, #cash-flow-table td {
        padding: 0.5rem 0.75rem;
    }
}

/* Custom input field styling */
.custom-input-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.custom-input-item .input-field {
    flex-grow: 1;
}
.custom-input-item .remove-custom-field-button {
    flex-shrink: 0;
    background-color: #ef4444; /* Red-500 */
    color: white;
    border-radius: 9999px; /* Full rounded */
    width: 28px; /* Fixed width */
    height: 28px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
}
.custom-input-item .remove-custom-field-button:hover {
    background-color: #dc2626; /* Red-600 */
}

