body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f4f8;
    margin: 0;
    display: flex;
    min-height: 100vh;
    line-height: 1.6;
}

/* Sidebar Styling */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    height: 100vh;
    padding-top: 30px;
    position: fixed;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
}

.sidebar h2 {
    text-align: left;
    margin-left: 30px;
    color: rgb(255, 255, 255);
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1px;
}

.sidebar a {
    display: block;
    padding: 15px;
    color: white;
    text-decoration: none;
    margin: 10px 15px;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 16px;
    font-weight: 500;
}

.sidebar a:hover {
    background-color: #2980b9;
    transform: translateX(5px);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

/* Content Area Styling */
.content {
    margin-left: 250px;
    padding: 30px;
    width: 100%;
    background-color: #f0f4f8;
}

h1 {
    text-align: center;
    color: #1a2a3a;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Form Container Styling */
.form-container {
    align-items: center;
    justify-content: center;
    background-color: #fff;
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

h3 {
    text-align: center;
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}
.number{
    width: 96%;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f5f5f5;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;

}
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
textarea,
input[type="file"],
input[type="submit"],
input[type="password"]
 {
    width: 96%;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f5f5f5;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

select {
    width: 100%;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f5f5f5;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus,
input[type="file"]:focus,
select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

input[type="submit"] {
    width: 100%;
    background-color: #3498db;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

input[type="submit"]:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Error messages */
.error {
    color: #dc3545;
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 200px;
    }

    .content {
        margin-left: 200px;
    }
}

/* Select Dropdown Styling */
select {
    appearance: none;
    cursor: pointer;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23333333"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

/* Success and Error Messages */
.success-message {
    background-color: #28a745;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.error-message {
    background-color: #dc3545;
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Additional Enhancements */
.styled-input {
    width: 96.5%;
    padding: 12px;
    margin: 12px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f5f5f5;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.styled-input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.3);
}

/* Hover Effects for Buttons */
button {
    background-color: #3498db;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

tr:hover {
    background-color: #f5f5f5;
}
.sidebar a.active {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}
th {
    text-align: center; /* Centers all table headers */
    padding: 10px;
}
/* Logout Button Styling */
/* Logout Button Styling *//* Logout Button Styling */
.logout-button {
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    font-weight: bold;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.logout-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Sidebar Logout Link Styling */
.sidebar a[href="logout.php"] {
    background-color: #f83434; /* Blue background */
    color: white; /* White text */
    font-weight: bold;
    margin-top: 20px;
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.sidebar a[href="logout.php"]:hover {
    background-color: #b30000; /* Darker blue on hover */
}

/* Header Logout Link Styling */
.header a[href="logout.php"] {
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    font-weight: bold;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease; /* Smooth hover effect */
}

.header a[href="logout.php"]:hover {
    background-color: #0056b3; /* Darker blue on hover */
}
.logout-btn {
    display: block;
    text-align: left;
    width: 100%;
    background-color: #b30000;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
