/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Press Start 2P', sans-serif; /* Fuente estilo pixelada */
    background-color: #000; /* Fondo negro como en NES */
    color: #fefefe; /* Texto blanco brillante */
    line-height: 1.4;
    padding: 10px;
}

/* Form Container */
.form-container, .login-container {
    background-color: #18151A; /* Fondo oscuro de consola */
    max-width: 350px;
    margin: 30px auto;
    padding: 15px;
    border: 3px solid #444; /* Borde grueso estilo pixelado */
    text-align: center;
}

/* Headings */
h1, h2 {
    margin-bottom: 10px;
    font-size: 16px; /* Tamaño de fuente más pequeño */
    color: #00ff00; /* Verde brillante como en consolas */
    text-transform: uppercase;
}

/* Form Group */
.form-group {
    margin-bottom: 10px;
    text-align: left;
}

/* Labels */
label {
    font-weight: normal;
    margin-bottom: 3px;
    color: #fefefe;
    font-size: 12px; /* Fuente pequeña y pixelada */
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-top: 3px;
    background-color: #333; /* Fondo oscuro en los campos */
    color: #fff;
    border: 2px solid #555; /* Bordes con un grosor de píxel */
    font-size: 12px;
    transition: border 0.2s ease;
    outline: none;
    border-radius: 0; /* Sin redondeo para aspecto retro */
}

input:focus {
    border-color: #00ff00; /* Color verde al enfoque */
}

/* Submit Button */
button {
    width: 100%;
    padding: 10px;
    background-color: #00ff00; /* Verde brillante */
    color: #222222;
    border: none;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 5px;
}

button:hover {
    background-color: #00cc00; /* Un verde ligeramente oscuro */
}

/* Links */
.login-link, .register-link, .forgot-link {
    margin-top: 5px;
    color: #00ff00; /* Verde brillante */
    text-decoration: none;
    font-size: 10px;
}

.login-link:hover, .register-link:hover, .forgot-link:hover {
    text-decoration: underline;
}

/* Success and Error Messages */
.success-message, .error-message {
    margin-bottom: 10px;
    font-size: 0.75em;
}

.success-message {
    color: #00ff00;
}

.error-message {
    color: #ff0000; /* Rojo para errores */
}

/* Additional Responsive Styling */
@media (max-width: 768px) {
    .form-container, .login-container {
        padding: 10px;
        margin: 10px auto;
    }

    input, button {
        padding: 8px;
        font-size: 12px;
    }
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100%;
    background-color: #222;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 3px solid #444; /* Borde lateral estilo pixelado */
}

.menu-item {
    color: #00ff00;
    padding: 10px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
}

.menu-item:hover {
    background-color: #333;
}

.menu-item.active {
    background-color: #444;
}

/* Dashboard Styles */
.dashboard-container {
    margin-left: 220px;
    padding: 20px;
}

/* Product Table Styles */
.product-table, .server-status-table {
    width: 80%;
    margin: 20px auto;
    border-collapse: collapse;
    color: #fefefe;
}

.product-table th, 
.product-table td,
.server-status-table th, 
.server-status-table td {
    border: 2px solid #555;
    padding: 5px;
    text-align: center;
}

/* Background Colors for Success and Fail States */
.bg-success {
    background-color: #003300; /* Verde oscuro de fondo */
}

.bg-fail {
    background-color: #330000; /* Rojo oscuro de fondo */
}
