body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

.header {
    background-color: #5f27cd; /* Purple from screenshot */
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    font-size: 24px;
    font-weight: bold;
}

.header .nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-weight: bold;
}

.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-form, .register-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-form h2, .register-form h2 {
    text-align: center;
    color: #5f27cd;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"] {
    width: calc(100% - 20px);
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button[type="submit"] {
    background-color: #ff8c00; /* Orange from screenshot */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #e07b00;
}

.error-message {
    color: red;
    background-color: #ffe0e0;
    border: 1px solid red;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
}

.success-message {
    color: green;
    background-color: #e0ffe0;
    border: 1px solid green;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
}

.info-message {
    color: #0056b3;
    background-color: #e0f2ff;
    border: 1px solid #0056b3;
    padding: 10px;
    margin-top: 10px;
    border-radius: 4px;
    text-align: center;
}

.dashboard-section {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 20px;
}

.referral-stats, .points-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

.stat-box {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    border-radius: 8px;
    color: white;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-box h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.stat-box p {
    font-size: 2em;
    font-weight: bold;
    margin: 0;
}

.stat-box.blue { background-color: #007bff; }
.stat-box.yellow { background-color: #ffc107; color: #333;}
.stat-box.green { background-color: #28a745; }
.stat-box.red { background-color: #dc3545; }
.stat-box.light-blue { background-color: #17a2b8; }
.stat-box.light-green { background-color: #20c997; }
.stat-box.purple { background-color: #6f42c1; }

.your-referral-tools h2,
.referral-history h2,
.redeem-points h2,
.profile-section h2,
.purchase-section h2 {
    color: #5f27cd;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.tool-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.tool-item label {
    font-weight: bold;
    min-width: 120px;
}

.tool-item input[type="text"] {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.tool-item button {
    background-color: #007bff;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.tool-item button:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.status-pending { color: orange; font-weight: bold; }
.status-approved { color: green; font-weight: bold; }
.status-rejected { color: red; font-weight: bold; }

.redeem-points form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.redeem-points input[type="number"] {
    width: 200px;
}

.redeem-points button {
    width: auto;
    padding: 10px 20px;
    background-color: #ff8c00;
}

.redeem-points button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.purchase-section {
    text-align: center;
    padding: 30px;
    background-color: #ffe0e0;
    border: 1px solid #dc3545;
    border-radius: 8px;
    margin-bottom: 20px;
}

.purchase-section h2 {
    color: #dc3545;
    border-bottom: none;
}

.button-purchase {
    display: inline-block;
    background-color: #28a745;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 10px;
}

.button-purchase:hover {
    background-color: #218838;
}

.button-verify {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.button-verify:hover {
    background-color: #0056b3;
}

.profile-info-box, .change-password-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.profile-info-box .form-group input,
.change-password-box .form-group input {
    width: 100%;
}

.profile-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .profile-section {
        grid-template-columns: 1fr 1fr;
    }
}

.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
}
.message.success {
    background-color: #e0ffe0;
    color: green;
    border: 1px solid green;
}
.message.error {
    background-color: #ffe0e0;
    color: red;
    border: 1px solid red;
}


/* Add to public/css/style.css */

.form-group label {
    display: block; /* Keep labels for inputs as block to take full width above input */
    margin-bottom: 5px;
    font-weight: bold;
}

/* For radio button labels */
.form-group div input[type="radio"] + label { /* Targets labels directly after radio buttons */
    display: inline-block; /* Makes label behave like text next to radio */
    vertical-align: middle; /* Aligns text vertically with the radio button */
    margin-left: 5px; /* Adds a small space between radio and text */
    font-weight: normal; /* Labels for radio/checkbox typically not bold */
}

.form-group div { /* Container for radio button and its label */
    margin-bottom: 5px; /* Adjust spacing between radio options */
}