/* General Styles */
body {
    font-family: Arial, sans-serif;
    background: #f4f4f4; /* Light gray background */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* Centered Login Box */
.login-container, .dashboard-container {
    background: white;
    padding: 25px;
    width: 350px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Headings */
h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 22px;
}

/* Input Fields */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease-in-out;
}

.input-group input:focus {
    border-color: #007bff;
    outline: none;
}

/* Button */
button {
    width: 100%;
    background: #007bff;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

button:hover {
    background: #0056b3;
}

/* Error Message */
#error-message {
    margin-top: 10px;
    color: red;
    font-size: 14px;
}

/* General Styles */
body {
    font-family: Arial, sans-serif;
    background: #e9ecef; /* Soft gray background */
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
}

/* Dashboard Container */
.dashboard-container {
    background: white;
    padding: 30px;
    width: 400px;
    border-radius: 12px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Dashboard Header */
.dashboard-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: #007bff; /* Blue header */
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

/* Headings */
h2 {
    margin-top: 20px;
    color: #007bff;
    font-size: 24px;
}

/* User Role */
p {
    font-size: 16px;
    color: #555;
    margin-top: 10px;
}

/* Dashboard Buttons */
.dashboard-options {
    margin-top: 20px;
}

.dashboard-options button {
    width: 100%;
    background: #28a745; /* Green for actions */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;
    transition: background 0.3s ease-in-out;
}

.dashboard-options button:hover {
    background: #218838;
}

/* Logout Button */
.dashboard-options button:last-child {
    background: #dc3545;
}

.dashboard-options button:last-child:hover {
    background: #c82333;
}
/* General Body Styling */
body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
}

/* Dashboard Container */
.dashboard-container {
    background: white;
    padding: 25px;
    width: 90%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Headings */
h2 {
    color: #2a5298;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Buttons */
button {
    background: #2a5298;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
    margin: 5px;
}

button:hover {
    background: #1e3c72;
}

button.delete {
    background: #d9534f;
}

button.delete:hover {
    background: #c9302c;
}

/* Table Styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

thead {
    background: #2a5298;
    color: white;
}

th, td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

tr:hover {
    background: rgba(42, 82, 152, 0.1);
}

th {
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 600px) {
    table {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px;
    }
}
/* Users Grid Layout */
.users-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    justify-content: center;
}

.user-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.user-card:hover {
    transform: scale(1.05);
}

.user-card h3 {
    margin-bottom: 5px;
    color: #2a5298;
}

.user-card p {
    font-size: 14px;
    color: #555;
}

/* Action Buttons */
.user-actions {
    margin-top: 10px;
}

.user-actions button {
    background: #2a5298;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin: 3px;
    transition: background 0.3s ease;
}

.user-actions button:hover {
    background: #1e3c72;
}

button.delete {
    background: #d9534f;
}

button.delete:hover {
    background: #c9302c;
}

/* Pagination */
.pagination {
    margin-top: 15px;
    text-align: center;
}

.pagination a {
    padding: 8px 12px;
    margin: 0 5px;
    background: #2a5298;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.pagination a:hover {
    background: #1e3c72;
}

.pagination .active {
    background: #1e3c72;
    font-weight: bold;
}
/* Templates Container */
.templates-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    justify-content: center;
}

.template-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.2s ease-in-out;
}

.template-card:hover {
    transform: scale(1.05);
}

.template-card h3 {
    margin-bottom: 5px;
    color: #2a5298;
}

.template-card button {
    background: #2a5298;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    margin: 3px;
    transition: background 0.3s ease;
}

.template-card button:hover {
    background: #1e3c72;
}

button.delete {
    background: #d9534f;
}

button.delete:hover {
    background: #c9302c;
}
