/* Professional Clean CSS for Minespot */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f7fafc; /* Light gray background */
    color: #2d3748; /* Dark gray text */
    font-size: 16px;
    line-height: 1.5;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
nav {
    background-color: #1a202c; /* Dark gray nav */
    padding: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
nav .total-hnt {
    font-size: 16px;
    font-weight: 600;
    color: #38a169; /* Green for positive info */
}
/* Tier Select and Update Button */
.tier-select {
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #2d3748;
    margin-right: 8px;
}

.update-tier {
    font-size: 12px;
    padding: 8px 16px;
    background-color: #38a169; /* Green to differentiate from blue buttons */
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.update-tier:hover {
    background-color: #2f855a; /* Darker green hover */
}

/* Ensure table responsiveness */
.table-responsive {
    overflow-x: auto;
    max-width: 100%;
}

table {
    width: 100%;
    min-width: 1200px; /* Adjust based on content to ensure scrolling if needed */
    border-collapse: collapse;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: #edf2f7; /* Light gray text */
    text-decoration: none;
    font-size: 16px;
    margin-left: 24px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #63b3ed; /* Light blue hover */
}

nav .brand {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
}

/* Buttons */
button, .btn {
    background-color: #3182ce; /* Blue button */
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

button:hover, .btn:hover {
    background-color: #2b6cb0; /* Darker blue hover */
}

/* Hero Section */
.hero {
    background: linear-gradient(to right, #3182ce, #9f7aea); /* Blue to purple gradient */
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 24px;
}

.hero .btn {
    font-size: 18px;
}

/* Features Section */
.features {
    padding: 64px 20px;
    text-align: center;
}

.features h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 32px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 16px;
    color: #4a5568;
}

/* CTA Section */
.cta {
    background-color: #3182ce;
    padding: 64px 20px;
    text-align: center;
    color: #ffffff;
}

.cta h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 24px;
}

/* Footer */
footer {
    background-color: #1a202c;
    padding: 32px 20px;
    text-align: center;
    color: #edf2f7;
}

footer p {
    font-size: 14px;
}

footer a {
    color: #edf2f7;
    text-decoration: none;
    margin: 0 12px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #63b3ed;
}

/* Dashboard and Admin Pages */
header {
    background-color: #3182ce;
    padding: 16px;
    color: #ffffff;
}

header h1 {
    font-size: 24px;
    font-weight: 700;
}

main {
    padding: 24px;
}

form {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #2d3748;
}

form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="number"],
form input[type="datetime-local"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    color: #2d3748;
}

form input[type="checkbox"] {
    margin-right: 8px;
}

form button {
    width: 100%;
}

.form-message {
    font-size: 14px;
    margin-top: 12px;
    text-align: center;
}

.form-message.success {
    color: #38a169;
}

.form-message.error {
    color: #e53e3e;
}

/* Table for Admin Panel */
th, td {
    border: 1px solid #e2e8f0;
    padding: 12px;
    font-size: 14px;
    text-align: left;
}

th {
    background-color: #edf2f7;
    font-weight: 600;
}

td {
    background-color: #ffffff;
}

.view-password, .update-earnings {
    font-size: 12px;
    padding: 8px 16px;
}

/* Email Opt-In Section */
.email-opt-in-section {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto 24px;
}

.email-opt-in-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Earnings Section */
.earnings-section {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.earnings-container {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.earnings-history {
    flex: 1;
    max-width: 300px;
}

.earnings-history h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.earnings-history p {
    font-size: 14px;
    margin-bottom: 12px;
}

.earnings-history ul {
    list-style: none;
    font-size: 14px;
    color: #4a5568;
}

.earnings-history li {
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

canvas {
    flex: 2;
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 16px;
}

/* HNT Earnings Input */
.hnt-earnings-input {
    width: 80px;
    margin-right: 8px;
}

.hnt-earnings-date {
    width: 160px;
}

/* Login Page */
.login-container {
    max-width: 400px;
    margin: 40px auto;
    background-color: #ffffff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.tabs button {
    background-color: transparent;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease; /* Added color transition */
    color: #2d3748; /* Dark gray text */
}

.tabs button:hover {
    color: #a0aec0; /* Light grey on hover */
}

.tabs button.active {
    border-bottom: 2px solid #3182ce; /* Blue underline for active tab */
    color: #2d3748; /* Dark gray text for active tab */
}

.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    nav .container {
        flex-direction: column;
        align-items: flex-start;
    }

    nav a {
        margin: 8px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    form, .email-opt-in-section, .earnings-section {
        max-width: 100%;
    }

    .earnings-container {
        flex-direction: column;
        align-items: center;
    }

    .earnings-history, canvas {
        max-width: 100%;
    }
}

/* Scrollable Earnings History */
.scrollable-earnings {
    max-height: 200px; /* Truncate height */
    overflow-y: auto; /* Add scroll bar */
    border: 1px solid #e2e8f0;
    padding: 8px;
    border-radius: 6px;
}

/* Cash-out Section */
.cashout-section {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

#cashout-btn {
    background-color: #38a169; /* Green to differentiate */
    color: #ffffff;
    margin-bottom: 16px;
}

#cashout-btn:disabled {
    background-color: #a0aec0; /* Gray for disabled */
}

#clear-cashout-btn {
    background-color: #e53e3e; /* Red */
    color: #ffffff;
}

.cashout-status-item {
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 4px;
}

.cashout-status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.cashout-status-approved {
    background-color: #d4edda;
    color: #155724;
}

.cashout-status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

/* Toggle Section */
.toggle-section {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Toggle Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px; /* Width of the toggle */
    height: 25px; /* Height of the toggle */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc; /* Off state background */
    transition: background-color 0.3s;
    border-radius: 25px; /* Rounded corners */
}

.slider:before {
    position: absolute;
    content: "";
    height: 21px; /* Knob size */
    width: 21px;
    left: 2px;
    bottom: 2px;
    background-color: white; /* Knob color */
    transition: transform 0.3s;
    border-radius: 50%; /* Circular knob */
}

input:checked + .slider {
    background-color: #38a169; /* On state background (green) */
}

input:checked + .slider:before {
    transform: translateX(25px); /* Slide distance */
}

/* Round slider (already applied via border-radius) */

/* Approve/Reject Buttons */
.approve-cashout {
    background-color: #38a169;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

.reject-cashout {
    background-color: #e53e3e;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
}
/* Buyback Section */
.buyback-section {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.buyback-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.buyback-info {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.buyback-info h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.total-buybacks {
    font-size: 16px;
    font-weight: 600;
    color: #38a169; /* Green for positive info */
}
/* Slide-Down Form */
.slide-down {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.slide-down.hidden {
    max-height: 0;
}

.slide-down:not(.hidden) {
    max-height: 500px; /* Adjust based on form height */
}
/* Add this to your existing styles.css */
.delete-user {
    background-color: #e53e3e; /* Red for delete */
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.delete-user:hover {
    background-color: #c53030; /* Darker red hover */
}