/* General Styles */
body {
    font-family: Georgia, sans-serif;
    margin: 10px 20px 0px 220px;
    padding: 0;
    background-color: #f4f4f4;
    text-align: center;
}

h2 {
    color: #333;
}

/* Container for form and content */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}

/* Header and Navigation */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

header a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
}

header a:hover {
    text-decoration: underline;
}

.logo {
    width: 150px; /* Adjust logo size as needed */
    height: auto;
}

/* Form Styles */
.login-form,
.form-container,
.edit-form,
.user-form,
.request-form,
.item-form,
.add-item-form {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.login-form {
    width: 100%;
    max-width: 400px;
    margin-top: 20px;
}

.login-form h2,
.form-container h2,
.edit-form h2,
.user-form h2,
.request-form h2 {
    margin-bottom: 20px;
    text-align: center;
}

/* General styling for form controls */
.form-control {
    width: 100%;
    padding: 10px;
    box-sizing: border-box; /* Ensures padding is included in the width */
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

form input[type="text"],
form input[type="password"],
form input[type="number"],

form select {
    width: calc(100% - 20px); /* Ensure that form controls take the full width minus padding */
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

/* Button styling */
button,
.create-user-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    background-color: #007bff;
    text-decoration: none;
}

button:hover,
.create-user-btn:hover {
    background-color: #0056b3;
    border-radius: 50px;
}

/* Error and Success Messages */
.error-message,
.success-message {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
}

.error-message {
    color: red;
    background-color: #f8d7da;
}

.success-message {
    color: green;
    background-color: #d4edda;
}

/* Table Styles */
.table-container {
            display: flex;
            justify-content: center; /* Center horizontally */
            align-items: center; /* Center vertically */
        }

table {
    width: auto;
    border-collapse: collapse;
    margin-bottom: 20px;
}

table, th, td {
    border: 1px solid #ccc;
}

th, td {
    padding: 8px;
    text-align: center;
    font-size: 14px;
}

th {
    background-color: #f2f2f2;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.welcome-links {
    display: flex;
    align-items: center;
}

.welcome-links a {
    margin-left: 10px; /* Space between buttons */
}

/* Specific Button Styles */
.create-user-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    background-color: #007bff;
}

.create-user-btn i {
    margin-right: 2px; /* Space between icon and text */
    margin-top: 3px;
}

.create-user-btn:hover {
    background-color: #0056b3;
    border-radius: 1000px;
    
}

/* Pagination Styles */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination a,
.pagination .current,
.pagination span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    color: #007bff;
    text-decoration: none;
    border: 1px solid #007bff;
    border-radius: 3px;
    transition: background-color 0.3s, color 0.3s;
}

.pagination a:hover {
    background-color: #007bff;
    color: white;
}

.pagination .current {
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
}

.pagination .disabled {
    color: #ccc;
    cursor: not-allowed;
}

.pagination .disabled:hover {
    background-color: inherit;
    color: #ccc;
}

/* Footer Styles */
.footer {
    color: #333;
    padding: 10px 0;
    text-align: center;
}

/* Additional Styles for Buttons */
.logout-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    background-color: #dc3545; /* Red color */
    align-items: center; /* Center items vertically */
    justify-content: center; /* Center items horizontally */
}

.logout-btn:hover {
    background-color: #c82333; /* Darker red for hover effect */
    border-radius: 100px;

}

.edit-link {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    background-color: #0000FF; /* Red color */
}

.edit-link:hover {
    background-color: #FF0000; /* Darker green for hover effect */
    border-radius: 20px;
}

.item-row {
    width: 100%;
    max-width: 600px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    background-color: #f9f9f9;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px; /* Space between items */
}

.item-row select,
.item-row input[type="number"] {
    flex-grow: 1; /* Makes the input and select fields grow to fill available space */
}

.item-row button {
    padding: 5px 10px;
    background-color: #dc3545; /* Red color */
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.item-row button:hover {
    background-color: #c82333; /* Darker red for hover effect */
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding-left: 10px;
        padding-right: 10px;
    }

    .container {
        width: 100%;
        padding: 0;
    }

    .login-form {
        width: 100%;
        max-width: 90%;
    }

    table {
        width: 100%;
        overflow-x: auto;
        display: block;
    }

    th, td {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .form-control {
        font-size: 14px;
    }

    button,
    .create-user-btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    .item-row {
        flex-direction: column;
    }

    .item-row select,
    .item-row input[type="number"] {
        width: 100%;
    }
}

/* loader */

.lds-ellipsis,
.lds-ellipsis div {
  box-sizing: border-box;
}
.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}
.lds-ellipsis div {
  position: absolute;
  top: 33.33333px;
  width: 13.33333px;
  height: 13.33333px;
  border-radius: 50%;
  background: currentColor;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

/* loader end */

input[type=file]::file-selector-button {
  margin-right: 20px;
  border-radius: 10px;
  border: 1px solid #555;
  background: #084cdf;
  padding: 10px 20px;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease-in-out;
}

input[type=file]::file-selector-button:hover {
  background: #0d45a5;
  border-radius: 20px;
}

input[type=file] {
  width: 275px;
  max-width: 100%;
  color: #444;
  padding: 5px;
  background: #fff;
  border-radius: 10px;
  border: 1.5px dashed #555;
}

.role-btn {
            color: #333;
            text-decoration: none;
            display: block;
            padding: 10px 0;
            font-size: 18px;
        }
        .role-btn:hover {
            color: #ffffff;
            background-color: #34495e;
            border-radius: 20px;
        }
        
.sidebar {
            width: 230px;
            height: 100vh;
            background-color: #ffff;
            color: #ecf0f1;
            position: fixed;
            top: 0;
            left: 0;
            padding: 20px;
        }
        .sidebar h3 {
            color: #333;
            text-align: center;
        }
        .sidebar a {
            background-color: #50a5eb;
            color: #333;
            text-decoration: none;
            display: block;
            padding: 10px 0;
            font-size: 14px;
            border-radius: 5px;
            margin:10px;
        }
        .sidebar a:hover {
            color: #ffffff;
            background-color: #34495e;
            border-radius: 20px;
        }