@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

/* Existing global styles remain the same */
:root {
  --primary-color: #402101;
  --secondary-color: #593116;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --border-color: rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  --border-radius: 6px;
}


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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  padding: 30px;
}

.container {
  position: relative;
  max-width: 1000px;
  width: 100%;
  background: #fff;
  padding: 60px 30px;
  box-shadow: var(--shadow);
  perspective: 2700px;
}

/* Typography */
h2, h3 {
  position: relative;
  font-size: 24px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 30px;
}

h2:before, h3:before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 3px;
  width: 25px;
  background: var(--primary-color);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  color: var(--text-dark);
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 14px;
}

input, select, textarea {
  height: 50px;
  width: 100%;
  outline: none;
  border: none;
  padding: 0 15px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 2px solid var(--border-color);
  transition: var(--transition);
}

textarea {
  height: 100px;
  padding: 15px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--primary-color);
}

/* Button Styles */
.btn {
  height: 50px;
  width: 100%;
  color: var(--text-light);
  background: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  padding: 0 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.btn:hover {
  background: var(--secondary-color);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: #fff;
  box-shadow: var(--shadow);
}

th, td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: var(--primary-color);
  color: var(--text-light);
  font-weight: 500;
}

tr:hover {
  background: rgba(64, 33, 1, 0.05);
}

/* Modal Styles */
.edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.edit-modal-content {
  background: #fff;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 90%;
  box-shadow: var(--shadow);
}

/* Filter Section */
.filter-section {
  background: rgba(64, 33, 1, 0.05);
  padding: 20px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Status Indicators */
.status-pending {
  color: #FF5722;
  font-weight: 600;
}

.status-released {
  color: #4CAF50;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 730px) {
  .container {
    padding: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  table {
    display: block;
    overflow-x: auto;
  }
  
  .btn {
    width: 100%;
    margin: 5px 0;
  }
}

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

.container {
  animation: fadeIn 0.5s ease-out;
}

/* Button Groups */
.button-group {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

/* Records Container */
.records-container {
  min-height: 200px;
}

.placeholder-text {
  text-align: center;
  color: var(--text-dark);
  padding: 20px;
  font-weight: 500;
}


/* Table Action Button (Edit) */
.edit-btn {
  background: transparent;
  color: #402101;
  border: 2px solid #402101;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.edit-btn:hover {
  background: #402101;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(64, 33, 1, 0.2);
}

/* Modal Action Buttons Container */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  justify-content: flex-end;
}

/* Modal Action Button Base Style */
.action-buttons button {
  padding: 12px 24px;
  border-radius: 6px;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

/* Save Button */
.action-buttons button[type="submit"] {
  background: #402101;
  color: #fff;
  border: none;
}

.action-buttons button[type="submit"]:hover {
  background: #593116;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 33, 1, 0.2);
}

/* Cancel Button */
.action-buttons button[type="button"] {
  background: transparent;
  color: #402101;
  border: 2px solid #402101;
}

.action-buttons button[type="button"]:hover {
  background: rgba(64, 33, 1, 0.05);
  transform: translateY(-2px);
}

/* Disabled State */
.action-buttons button:disabled,
.edit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .action-buttons {
    flex-direction: column;
    gap: 8px;
  }
  
  .action-buttons button {
    width: 100%;
  }
  
  .edit-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* Add Login specific styles */
.cover {
  position: absolute;
  top: 0;
  left: 50%;
  height: 100%;
  width: 50%;
  z-index: 98;
  transition: all 1s ease;
  transform-origin: left;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

#flip:checked ~ .cover {
  transform: rotateY(-180deg);
}

#flip:checked ~ .forms .login-form {
  pointer-events: none;
}

.cover .front,
.cover .back {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.cover .back {
  transform: rotateY(180deg);
}

.cover img {
  position: absolute;
  height: 100%;
  width: 100%;
  object-fit: cover;
  z-index: 10;
}

.cover .text {
  position: absolute;
  z-index: 10;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.cover .text::before {
  content: '';
  position: absolute;
  height: 100%;
  width: 100%;
  opacity: 0.5;
  background: var(--primary-color);
}

.cover .text .text-1,
.cover .text .text-2 {
  z-index: 20;
  font-size: 26px;
  font-weight: 600;
  color: var(--text-light);
  text-align: center;
}

.cover .text .text-2 {
  font-size: 15px;
  font-weight: 500;
}

.forms {
  height: 100%;
  width: 100%;
  background: #fff;
}

.form-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-content .login-form,
.form-content .signup-form {
  width: calc(100% / 2 - 25px);
}

#flip {
  display: none;
}

/* Login page responsive styles */
@media (max-width: 730px) {
  .cover {
    display: none;
  }

  .form-content .login-form,
  .form-content .signup-form {
    width: 100%;
  }

  .form-content .signup-form {
    display: none;
  }

  #flip:checked ~ .forms .signup-form {
    display: block;
  }

  #flip:checked ~ .forms .login-form {
    display: none;
  }
}



.edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.edit-modal-content {
  background: #fff;
  padding: 40px 30px;
  border-radius: var(--border-radius);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  position: relative;
}

/* Updated Modal Action Buttons Container */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

/* Responsive Modal Adjustments */
@media (max-width: 480px) {
  .edit-modal {
    padding: 10px;
    align-items: flex-start;
    overflow-y: auto;
  }
  
  .edit-modal-content {
    max-height: 85vh;
    margin: 20px 0;
    padding: 30px 20px;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    margin-top: 20px;
  }
  
  .action-buttons button {
    width: 100%;
  }
}

/* Scrollbar Styling */
.edit-modal-content::-webkit-scrollbar {
  width: 8px;
}

.edit-modal-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.edit-modal-content::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.edit-modal-content::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}