body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1a1a2e; /* Dark background */
    color: #e0e0e0; /* Light text */
}

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

header {
    background-color: #16213e;
    padding: 15px 0;
    border-bottom: 2px solid #0f3460; /* Neon blue accent */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-brand a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    color: #a0a0ff; /* Lighter neon blue */
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: #00ff99; /* Neon green on hover */
    border-bottom: 2px solid #00ff99;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.green-button {
    background-color: #00ff99; /* Neon green */
    color: #1a1a2e;
}

.green-button:hover {
    background-color: #00e689;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 255, 153, 0.4);
}

.blue-button {
    background-color: #0f3460; /* Neon blue */
    color: #fff;
}

.blue-button:hover {
    background-color: #164a8c;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(15, 52, 96, 0.6);
}

.red-button {
    background-color: #e94560; /* Red for danger/deactivation */
    color: #fff;
}

.red-button:hover {
    background-color: #d13a52;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(233, 69, 96, 0.5);
}

/* Forms */
.auth-form {
    background-color: #2c2c4a;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    margin: 30px auto;
    border: 1px solid #0f3460; /* Neon blue border */
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    color: #a0a0ff;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #0f3460;
    border-radius: 4px;
    background-color: #1a1a2e;
    color: #e0e0e0;
}

.auth-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
}

/* Flash Messages */
.flash-messages {
    margin-top: 20px;
}

.alert {
    padding: 10px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-weight: bold;
}

.alert-success {
    background-color: #00ff99;
    color: #1a1a2e;
}

.alert-danger {
    background-color: #e94560;
    color: #fff;
}

.alert-warning {
    background-color: #ffc107;
    color: #333;
}

.alert-info {
    background-color: #a0a0ff;
    color: #1a1a2e;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.dashboard-frame {
    background-color: #2c2c4a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

.dashboard-frame:hover {
    transform: scale(1.03);
    border-color: #00ff99;
}

.blue-border {
    border: 2px solid #0f3460; /* Neon blue border for frames */
}

.dashboard-frame h3 {
    color: #a0a0ff;
    margin-top: 0;
    border-bottom: 1px solid #0f3460;
    padding-bottom: 10px;
}

.dashboard-frame table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.dashboard-frame th, .dashboard-frame td {
    border: 1px solid #0f3460;
    padding: 8px;
    text-align: left;
    font-size: 0.9em;
}

.dashboard-frame th {
    background-color: #16213e;
    color: #a0a0ff;
}

.dashboard-frame td {
    background-color: #21213e;
}

.dashboard-frame .button {
    margin-top: auto; /* Push button to bottom */
    align-self: flex-start;
}

.sql-executor textarea {
    width: calc(100% - 22px);
    padding: 10px;
    border: 1px solid #0f3460;
    border-radius: 4px;
    background-color: #1a1a2e;
    color: #e0e0e0;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 15px;
}

.sql-result, .sql-error {
    background-color: #1a1a2e;
    border: 1px solid #0f3460;
    padding: 15px;
    margin-top: 20px;
    border-radius: 5px;
    overflow-x: auto;
}

.sql-error {
    border-color: #e94560;
    color: #e94560;
}

.warning-text {
    color: #ffc107;
    font-weight: bold;
    margin-bottom: 15px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

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

.data-table th {
    background-color: #16213e;
    color: #a0a0ff;
}

.data-table tr:nth-child(even) {
    background-color: #21213e;
}

.data-table tr:hover {
    background-color: #2c2c4a;
}

/* Password visibility toggle */
.password-input-container {
    position: relative;
    margin-bottom: 15px;
}

.password-input-container input {
    width: calc(100% - 20px);
    padding-right: 40px; /* Make space for the eye icon */
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2em;
    color: #a0a0ff;
}

footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    background-color: #16213e;
    color: #a0a0ff;
    border-top: 2px solid #0f3460;
}