/* General container */
.investment-dashboard-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 25px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Section headings */
.dashboard-heading {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid #689071;
    padding-bottom: 5px;
    color: #1275B9;
}

/* Form styling */
.investment-form,
.withdrawal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.investment-form label,
.withdrawal-form label {
    font-weight: 600;
    color: #333;
}

.investment-form input,
.withdrawal-form input,
.investment-form select {
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
}

.investment-form button,
.withdrawal-form button {
    background-color: #689071;
    color: white;
    border: none;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.investment-form button:hover,
.withdrawal-form button:hover {
    background-color: #e07000;
}

/* Summary Section */
.investment-summary {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 25px;
}

.investment-summary p {
    margin: 8px 0;
    font-weight: 500;
}

/* Admin table styling */
.wp-list-table,
table.widefat {
    border-collapse: collapse;
    width: 100%;
    margin-top: 20px;
}

.wp-list-table th,
.wp-list-table td,
table.widefat th,
table.widefat td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.wp-list-table th,
table.widefat th {
    background-color: #1275B9;
    color: white;
}

.wp-list-table tr:nth-child(even),
table.widefat tr:nth-child(even) {
    background-color: #f4f4f4;
}

.wp-list-table input[type="number"] {
    width: 80px;
}

.wp-list-table input[type="submit"] {
    padding: 6px 12px;
    background-color: #689071;
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
}

.wp-list-table input[type="submit"]:hover {
    background-color: #e07000;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .investment-dashboard-container {
        padding: 15px;
    }

    .dashboard-heading {
        font-size: 20px;
    }

    .investment-form input,
    .withdrawal-form input,
    .investment-form select {
        font-size: 14px;
    }

    .investment-form button,
    .withdrawal-form button {
        font-size: 14px;
    }
}

.investment-alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 20px;
    border-radius: 6px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.investment-alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.investment-alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.investment-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.investment-history-table th,
.investment-history-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}
.investment-history-table th {
    background-color: #f4f4f4;
}

.profit-history-table th, .profit-history-table td {
    padding: 10px;
    border: 1px solid #ddd;
}

.profit-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

