/* =====================
   GLOBAL
===================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Arial", sans-serif;
  background: #f5f5f5;
}

/* =====================
   BACK BUTTON
===================== */
.back-btn {
  background: #fff;
  color: #ff7a00;
  border: 2px solid #ff7a00;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.back-btn:hover {
  background: #ff7a00;
  color: #fff;
}

/* =====================
   LOGIN PAGE
===================== */
.login-body {
  background: linear-gradient(135deg, #ff7a00, #ffb266);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
  gap: 15px;
}

.login-box {
  background: #fff;
  padding: 30px 25px;
  width: 320px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-box h2 {
  color: #ff7a00;
  margin-bottom: 15px;
}

.login-box input {
  width: 100%;
  padding: 11px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.login-box button {
  width: 100%;
  padding: 11px;
  background: #ff7a00;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.login-box button:hover {
  background: #e66a00;
}

#error {
  color: red;
  font-size: 13px;
}

/* =====================
   DASHBOARD
===================== */
.dashboard {
  background: #f4f6f8;
  min-height: 100vh;
}

/* Header */
.dash-header {
  background: #ff7a00;
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* =====================
   BACK BUTTON (OSP)
===================== */
.back-btn {
  position: fixed;
  top: 16px;
  left: 16px;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  color: #ff7a00;

  border-radius: 50%;
  border: 2px solid #ff7a00;

  font-size: 20px;
  font-weight: bold;
  text-decoration: none;

  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  z-index: 1000;

  transition: all 0.25s ease;
}

/* Hover – desktop */
.back-btn:hover {
  background: #ff7a00;
  color: #ffffff;
  transform: scale(1.1);
}

/* Tap feedback – mobile */
.back-btn:active {
  transform: scale(0.95);
}

@media (max-width: 600px) {
  .back-btn {
    width: 38px;
    height: 38px;
    font-size: 18px;
    top: 12px;
    left: 12px;
  }
}


.back-btn::after {
  content: "Back";
  position: absolute;
  left: 50px;
  background: #ff7a00;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 4px;
  opacity: 0;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.back-btn:hover::after {
  opacity: 1;
}


/* Info Cards */
.agent-info,
.agent-tasks {
  background: #fff;
  margin: 15px;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.agent-info h3 {
  color: #ff7a00;
  margin-bottom: 4px;
}

/* =====================
   TABLE
===================== */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

th {
  background: #ff7a00;
  color: #fff;
  padding: 10px;
  font-size: 14px;
}

td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  font-size: 13px;
}

/* Buttons */
button {
  background: #ff7a00;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
}

button:hover {
  background: #e66a00;
}

/* Inputs inside table */
select,
textarea {
  font-size: 12px;
  padding: 5px;
}

textarea {
  width: 130px;
  height: 45px;
}

/* Status */
.done {
  color: green;
  font-weight: bold;
}

/* Demo Button */
.demo-btn-wrap {
  text-align: center;
  margin: 15px;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .dash-header h2 {
    font-size: 18px;
  }

  .login-box {
    width: 90%;
  }

  table {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  .dash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .back-btn,
  .logout-btn {
    width: 100%;
    text-align: center;
  }
}



