/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.4;
    padding: 10px;
}

/* Form Container */
.form-container, .login-container {
    background-color: #fff;
    max-width: 350px;
    margin: 30px auto;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

/* Headings */
h1, h2 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
}

/* Form Group */
.form-group {
    margin-bottom: 10px;
    text-align: left;
}

/* Labels */
label {
    font-weight: normal;
    margin-bottom: 3px;
    color: #555;
    font-size: 14px;
}

/* Input Fields */
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"] {
    width: 100%;
    padding: 8px;
    margin-top: 3px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: border 0.2s ease;
}

input:focus {
    border-color: #007BFF;
    outline: none;
}

/* Submit Button */
button {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 5px;
}

button:hover {
    background-color: #0056b3;
}

/* Links */
.login-link, .register-link, .forgot-link {
    margin-top: 5px;
    color: #007BFF;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.2s ease;
}

.login-link:hover, .register-link:hover, .forgot-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Success and Error Messages */
.success-message, .error-message {
    margin-bottom: 10px;
    font-size: 0.85em;
}

.success-message {
    color: green;
}

.error-message {
    color: red;
}

/* Additional Responsive Styling */
@media (max-width: 768px) {
    .form-container, .login-container {
        padding: 10px;
        margin: 10px auto;
    }

    input, button {
        padding: 8px;
        font-size: 14px;
    }
}


/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100%;
    background-color: #333;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000; /* Ensure the sidebar is on top */
}

.menu-item {
    color: white;
    padding: 15px;
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
}

.menu-item:hover {
    background-color: #575757;
}

.menu-item.active {
    background-color: #444;
}

/* Dashboard Styles */
.dashboard-container {
    margin-left: 220px; /* Ensure space for the sidebar */
    padding: 20px;
}

/* Product Table Styles */
.product-table, .server-status-table {
    width: 80%; /* Adjust width to fit inside the content area */
    margin: 20px auto;
    border-collapse: collapse;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-table th, 
.product-table td,
.server-status-table th, 
.server-status-table td {
    border: 1px solid #ddd;
    padding: 2px;
    text-align: center;
}

/* Background Colors for Success and Fail States */
.bg-success {
    background-color: #d4edda; /* Light green background */
}

.bg-fail {
    background-color: #f8d7da; /* Light red background */
}

/* Error Message Styling */
.error-message {
    color: red;
    font-size: 0.9em;
}

   .product-form {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .form-row {
        display: flex;
        align-items: center;
    }

    .form-row label {
        width: 150px;
        text-align: right;
        margin-right: 10px;
    }

    .form-row input {
        flex: 1;
    }
