/* General Styling & Reset */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f6; /* Light gray background */
    color: #333;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align content to the top */
    min-height: 100vh;
}

.container {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 800px;
    width: 95%;
}

h1 {
    color: #007bff; /* Primary blue color */
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
}

h2 {
    color: #555;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-top: 30px;
}

/* Forms and Inputs */
form {
    display: grid;
    gap: 15px;
    margin-top: 20px;
}

label {
    font-weight: bold;
    margin-top: 5px;
    color: #444;
}

input[type="text"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box; /* Important for padding */
    font-size: 1em;
}

/* Buttons */
button {
    padding: 12px 20px;
    background-color: #007bff; /* Primary action color */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

button:hover:not(:disabled) {
    background-color: #0056b3;
}

button:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

.stop-btn {
    background-color: #dc3545; /* Red for stopping */
}

.stop-btn:hover:not(:disabled) {
    background-color: #c82333;
}

/* Messages and Status Boxes */
.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-bottom: 15px;
    text-align: center;
}

.response-message {
    padding: 10px;
    margin-top: 15px;
    border-left: 5px solid #ffc107;
    background-color: #fff3cd;
}

.status-box {
    padding: 20px;
    border: 1px solid #007bff;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}
.status-box h2 {
    margin-top: 0;
    color: #007bff;
    border-bottom: none;
}


/* Data Tables (for Top Gainers) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.data-table th {
    background-color: #007bff;
    color: white;
}

.select-btn {
    background-color: #28a745; /* Green for selecting */
    padding: 6px 10px;
    font-size: 0.9em;
}

.select-btn:hover {
    background-color: #1e7e34;
}

/* IP Address Section (Dashboard) */
.ip-address-info {
    margin-top: 30px;
    padding: 20px;
    background-color: #e9f5ff;
    border-radius: 8px;
}

.static-ip-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border: 2px solid #007bff;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
}

.static-ip-box button {
    background-color: #6c757d;
    padding: 8px 15px;
}

.static-ip-box button:hover {
    background-color: #5a6268;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        margin: 20px 10px;
        padding: 20px;
    }
    .data-table, .static-ip-box {
        font-size: 0.9em;
    }
    .data-table th, .data-table td {
        padding: 8px;
    }
}
