/* received-funds-history.css */

/* Inherit basic reset and body styles from dashboard.css if not already global */
body {
    font-family: 'Inter', sans-serif;
    background-color: #141313;
    color: white;
    padding-top: 60px; /* Adjust based on header height */
    padding-bottom: 120px; /* Adjust based on footer height */
}

.dashboard-main {
    padding: 20px 14px; /* Consistent padding with other main content areas */
    max-width: 412px; /* Match app-container max-width */
    width: 100%;
    margin: 0 auto; /* Center the main content */
}

.history-section {
    background-color: #1a1a1a; /* Slightly lighter background for the section */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Hammersmith One', sans-serif;
    font-size: 24px;
    color: #0DB00D; /* Green accent color */
    text-align: center;
    margin-bottom: 25px;
    text-shadow: 0 0 5px rgba(13, 176, 13, 0.5);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    gap: 10px; /* Space between filter groups and buttons */
    margin-bottom: 20px;
    justify-content: center; /* Center filter controls */
}

.filter-group {
    flex: 1 1 auto; /* Allow items to grow and shrink, but maintain minimum width */
    min-width: 120px; /* Minimum width for each group */
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-size: 14px;
    color: #ddd;
    margin-bottom: 5px;
    font-weight: 700;
}

.filter-group input[type="date"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #eee;
    font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.filter-group input[type="date"]:focus {
    border-color: #0DB00D;
    box-shadow: 0 0 0 3px rgba(13, 176, 13, 0.3);
    outline: none;
}

.filter-button {
    padding: 10px 15px;
    background: linear-gradient(180deg, #0DB00D 0%, #087C08 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    flex-shrink: 0; /* Prevent buttons from shrinking too much */
}

.filter-button:hover {
    background: linear-gradient(180deg, #087C08 0%, #0DB00D 100%);
    transform: translateY(-1px);
}

.filter-button:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.filter-button.clear-button {
    background: linear-gradient(180deg, #dc3545 0%, #a71d2a 100%); /* Red gradient for clear button */
}

.filter-button.clear-button:hover {
    background: linear-gradient(180deg, #a71d2a 0%, #dc3545 100%);
}


#received-funds-history-list { /* Changed ID */
    list-style: none;
    padding: 0;
    margin: 0;
}

#received-funds-history-list li { /* Changed ID */
    background-color: #222;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border-left: 5px solid #0DB00D; /* Green accent on the left */
    word-wrap: break-word; /* Ensure long text wraps */
}

#received-funds-history-list li.loading { /* Changed ID */
    text-align: center;
    color: #ccc;
    font-style: italic;
    border-left: none;
}

#received-funds-history-list li:last-child { /* Changed ID */
    margin-bottom: 0;
}

/* Message Box Styling (from transfer.css, ensuring consistency) */
.message-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #333;
    color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    text-align: center;
    max-width: 300px;
    width: 90%;
    border: 1px solid #555;
    display: none; /* Hidden by default */
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.message-box.hidden {
    display: none;
}

.message-box.show {
    display: flex;
}

.message-box p {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
}

.message-box button {
    padding: 10px 20px;
    background-color: #0DB00D;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.message-box button:hover {
    background-color: #087C08;
}

/* Ensure footer nav items have no underline */
.dashboard-footer .navbar a {
    text-decoration: none;
}

/* Responsive adjustments for filter controls */
@media (max-width: 480px) {
    .filter-controls {
        flex-direction: column; /* Stack items vertically on very small screens */
        align-items: stretch; /* Stretch items to full width */
    }

    .filter-group {
        width: 100%; /* Full width for date inputs */
    }

    .filter-button {
        width: 100%; /* Full width for buttons */
    }
}
