/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

/* Container for general pages */
.container {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1, h2, h3 {
    margin-bottom: 20px;
    color: #333;
}

h1 {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    font-weight: 700;
}

/* Links */
a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Labels */
label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

/* Inputs and Selects */
input[type="text"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    background-color: #f8f9fa;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
    border-color: #007BFF;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.15), 0 0 8px rgba(0, 123, 255, 0.3);
}

/* Submit Buttons */
input[type="submit"],
.form-submit {
    background-color: #007BFF;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 10px rgba(0, 123, 255, 0.4);
}

input[type="submit"]:hover,
.form-submit:hover {
    background-color: #0056b3;
    box-shadow: 0 7px 14px rgba(0, 86, 179, 0.4);
    transform: translateY(-2px);
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

table, th, td {
    border: none;
    padding: 12px 15px;
}

th {
    background-color: #e2e8f0;
    text-align: left;
    font-weight: 600;
    color: #333;
}

td {
    text-align: left;
    color: #555;
    background-color: #f9f9f9;
}

tr:nth-child(even) td {
    background-color: #f1f3f5;
}

tr:hover td {
    background-color: #e9ecef;
}

/* Action Links */
.actions a {
    margin-right: 10px;
    color: #007BFF;
    transition: color 0.3s ease;
}

.actions a:hover {
    color: #0056b3;
}

/* Logout Button */
.logout-btn {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #c82333;
}

/* Login Page Styles */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 0;
    margin: 0;
}

.login-container {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

.login-heading {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-weight: 700;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.form-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f8f9fa;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    border-color: #007BFF;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.15), 0 0 8px rgba(0, 123, 255, 0.3);
}

.password-wrapper {
    position: relative;
}

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

.error-msg {
    color: #dc3545;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}
