* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background: #f0f2f5;
  color: #34495e;
  font-size: 14px;
}
h2{
  font-size: 30px;
  font-weight: 500;
  color:rgb(154, 173, 185);
  
}

.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 240px;
  background-color: #2c3e50;
  border-right: 1px solid #34495e;
  padding: 20px;
  position: relative;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  margin-bottom: 40px;
  text-align: center;
}

.sidebar-header h2 {
  font-size: 24px;
  color: #ecf0f1;
  font-weight: 700;
  margin-bottom: 5px;
}

.sidebar-header p {
  font-size: 13px;
  color: #bdc3c7;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav ul li {
  margin-bottom: 12px;
}

.sidebar nav ul li a {
  text-decoration: none;
  color: #ecf0f1;
  font-weight: 500;
  padding: 12px 15px;
  border-radius: 8px;
  display: block;
  transition: all 0.3s ease;
}

.sidebar nav ul li a:hover {
  background-color: #3498db;
  color: #ffffff;
}
.sidebar nav ul li a.active {
  background-color: #3498db;
  color: #ffffff;
  box-shadow: inset 3px 0 0 #f39c12;
}

.main-content {
  flex: 1;
  padding: 30px;
  background-color: #f8f9fa;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.main-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #2c3e50;
}

.search-box {
  padding: 10px 15px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  width: 250px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.content-area {
  background: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.05);
}

table th,
table td {
  text-align: left;
  padding: 15px;
  border-bottom: 1px solid #f0f0f0;
}

table th {
  background-color: #ecf0f1;
  font-weight: 600;
  color: #555;
  text-transform: uppercase;
  font-size: 13px;
}

table td {
    color: #444;
}

table tr:last-child td {
    border-bottom: none;
}

button {
  background-color: #3498db;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.preview {
  height: 50px;
  width: 50px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
}

form input,
form select,
form textarea {
  width: calc(100% - 22px);
  padding: 12px;
  margin-bottom: 18px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 15px;
  color: #34495e;
  background-color: #ffffff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

form textarea {
  resize: vertical;
  height: 100px;
}

.centered-container {
  display: flex;
  height: 100vh;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to bottom right, #3498db, #2c3e50);
}

.login-box {
  background: white;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.2);
  width: 380px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.login-box h2 {
  margin-bottom: 25px;
  font-size: 28px;
  color: #34495e;
}

.login-box input {
  width: 100%;
  margin-bottom: 20px;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 8px;
  font-size: 16px;
}

.login-box button {
  width: 100%;
  background-color: #3498db;
  color: white;
  padding: 14px;
  border: none;
  font-weight: bold;
  font-size: 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.login-box button:hover {
  background-color: #2980b9;
  transform: translateY(-1px);
}

.error-text {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 15px;
  font-weight: 500;
}

.form-container {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  border: 1px solid #e0e0e0;
}

.form-container h4 {
  margin-bottom: 20px;
  color: #34495e;
  font-size: 20px;
  font-weight: 600;
}

.data-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

.data-form input[type="file"] {
    padding: 10px;
}

.data-form button {
    margin-right: 15px;
    margin-top: 20px;
}

.data-form button.cancel-btn {
    background-color: #95a5a6;
}

.data-form button.cancel-btn:hover {
    background-color: #7f8c8d;
}

.image-preview {
    margin-top: -10px;
    margin-bottom: 20px;
    padding: 10px;
    border: 1px dashed #cccccc;
    min-height: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.image-preview img {
    max-height: 100px;
    max-width: 100px;
    margin: 0;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.add-new-btn {
    background-color: #2ecc71;
    margin-bottom: 25px;
    font-size: 15px;
}

.add-new-btn:hover {
    background-color: #27ae60;
}

.delete-btn {
    background-color: #e74c3c;
    margin-left: 8px;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.pagination {
    margin-top: 30px;
    text-align: center;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination button {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 0 8px;
    font-size: 15px;
    font-weight: 600;
}

.pagination button:hover {
    background-color: #2980b9;
}

.pagination span {
    font-weight: 600;
    color: #555;
    margin: 0 15px;
    font-size: 15px;
}

.modal {
    display: flex;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 35px;
    border: none;
    width: 90%;
    max-width: 650px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-content h4 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 22px;
    color: #34495e;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.modal-content p {
    margin-bottom: 12px;
    line-height: 1.8;
    color: #444;
}

.modal-content p strong {
    color: #2c3e50;
}

.close-button {
    color: #95a5a6;
    font-size: 32px;
    font-weight: normal;
    position: absolute;
    top: 15px;
    right: 20px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-button:hover,
.close-button:focus {
    color: #34495e;
}

table tr:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}