/* =========================
   RESET
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
}

body {
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
              url('../img/bg.jpg') center/cover no-repeat fixed;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =========================
   MAIN CONTAINER
========================= */
.container {
  display: flex;
  width: 100%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
  overflow: hidden;
  animation: slideUp 0.8s ease;
}

/* =========================
   LEFT PANEL
========================= */
.title {
  flex: 1;
  background: linear-gradient(135deg, #ff2b92, #d9027d);
  color: #fff;
  padding: 50px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  animation: fadeUp 1s ease;
}

.title h2 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.3);
}

.title img {
  width: 220px;
  animation: bounce 2s infinite;
}

/* =========================
   RIGHT PANEL
========================= */
.container_data {
  flex: 2;
  padding: 40px;
  animation: fadeUp 1.2s ease;
}

.h2-form {
  text-align: center;
  color: #d9027d;
  margin-bottom: 25px;
  letter-spacing: 1px;
  font-size: 1.8rem;
  animation: fadeUp 1s ease;
}

/* =========================
   FORM CARD
========================= */
.form-card {
  background: #fafafa;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 35px;
  animation: fadeUp 0.6s ease;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.input-style {
  margin-bottom: 18px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

/* =========================
   INPUTS
========================= */
input {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: 1.6px solid #ccc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

input:focus {
  border-color: #d9027d;
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 2, 125, 0.25);
  transform: scale(1.02);
}

/* =========================
   BUTTON
========================= */
button {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #ff2b92, #d9027d);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(217, 2, 125, 0.35);
  background: linear-gradient(135deg, #ff5ea1, #e6007a);
}

button:active {
  transform: scale(0.97);
}

/* =========================
   FLASH MESSAGES
========================= */
.flash-wrapper {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flash {
  min-width: 280px;
  padding: 14px 18px;
  border-radius: 10px;
  color: #fff;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: slideInRight 0.6s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* FLASH COLORS */
.flash-success {
  background: linear-gradient(135deg, #43a047, #2e7d32);
}

.flash-warning {
  background: linear-gradient(135deg, #ff9800, #ef6c00);
}

.flash-info {
  background: linear-gradient(135deg, #1e88e5, #1565c0);
}

.flash-error {
  background: linear-gradient(135deg, #e53935, #b71c1c);
}

.flash-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  margin-left: 10px;
  transition: transform 0.2s ease;
  width:10px;
}

.flash-close:hover {
  transform: scale(1.2);
}

/* =========================
   TABLE SECTION
========================= */
.table-section {
  animation: fadeUp 0.7s ease;
}

.table-title {
  text-align: center;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.5rem;
  animation: fadeUp 0.8s ease;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
}

.customer-table {
  width: 100%;
  border-collapse: collapse;
}

.customer-table th {
  background: #f1f1f1;
  padding: 12px;
  font-size: 14px;
}

.customer-table td {
  padding: 12px;
  text-align: center;
  font-size: 14px;
}

.customer-table tr {
  animation: rowFade 0.5s ease forwards;
}

.customer-table tr:nth-child(even) {
  background: #fafafa;
}

/* =========================
   STATUS ROWS
========================= */
.pending-row {
  background: #fff3e0;
  animation: pulsePending 1.8s infinite;
}

.approved-row {
  background: #e8f5e9;
  animation: glowApproved 2s infinite alternate;
}

.pending {
  color: #ef6c00;
  font-weight: 600;
}

.approved {
  color: #2e7d32;
  font-weight: 600;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes slideUp {
  from { opacity:0; transform: translateY(40px); }
  to { opacity:1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity:0; transform: translateY(20px); }
  to { opacity:1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity:0; transform: translateX(120%); }
  to { opacity:1; transform: translateX(0); }
}

@keyframes rowFade {
  from { opacity:0; transform: translateY(10px); }
  to { opacity:1; transform: translateY(0); }
}

@keyframes pulsePending {
  0% { box-shadow: 0 0 0 0 rgba(255,152,0,0.4); }
  70% { box-shadow: 0 0 0 12px rgba(255,152,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,152,0,0); }
}

@keyframes glowApproved {
  from { box-shadow: 0 0 8px rgba(46,125,50,0.3); }
  to { box-shadow: 0 0 18px rgba(46,125,50,0.6); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-12px); }
  60% { transform: translateY(-6px); }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .container {
    flex-direction: column;
  }

  .title {
    padding: 30px 20px;
  }

  .container_data {
    padding: 25px 20px;
  }

  .flash-wrapper {
    top: 15px;
    right: 15px;
    left: 15px;
  }

  .flash {
    min-width: auto;
  }

  .h2-form {
    font-size: 1.5rem;
  }

  .table-title {
    font-size: 1.2rem;
  }

  .title h2 {
    font-size: 1.8rem;
  }

  .title img {
    width: 180px;
  }
}

/* Extra mobile micro animation for table */
@media (max-width: 600px) {
  .customer-table th,
  .customer-table td {
    padding: 8px;
    font-size: 12px;
  }
}
.resend-btn {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}

.resend-btn:hover {
  background: #0056b3;
}
