@import url('tokens.css');

body.admin-body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: var(--font-family);
}

.admin-header {
  background-color: #1e1e1e;
  border-bottom: 1px solid rgba(255, 143, 0, 0.15);
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

.admin-logo span {
  color: var(--primary);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}

.admin-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
}

.admin-card {
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 143, 0, 0.1);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.admin-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-title-row h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 0.9rem;
}

.admin-table th {
  background-color: #161616;
  color: #a0a0a0;
  font-weight: 600;
}

.admin-table tr:hover {
  background-color: rgba(255, 143, 0, 0.02);
}

.status-badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.status-pending { background-color: rgba(239, 68, 68, 0.15); color: #ef4444; }
.status-contacted { background-color: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.status-negotiating { background-color: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.status-completed { background-color: rgba(16, 185, 129, 0.15); color: #10b981; }

.admin-select {
  background: #2a2a2a;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.admin-select:focus {
  border-color: var(--primary);
}

.admin-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.logout-btn {
  background-color: transparent;
  color: #ef4444;
  border: 1px solid #ef4444;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.logout-btn:hover {
  background-color: #ef4444;
  color: #fff;
}

/* Login Page & Additional Dashboard Layout Styles */

.login-body {
  background: radial-gradient(circle at center, #2c1a04 0%, #121212 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background-color: #1e1e1e;
  border: 1px solid rgba(255, 143, 0, 0.15);
  border-radius: 12px;
  padding: 40px 30px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 1px rgba(255, 143, 0, 0.15);
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}

.login-header .brand-icon {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 10px;
}

.login-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
  color: #fff;
}

.login-header p {
  font-size: 14px;
  color: #a0a0a0;
}

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.alert-icon {
  font-size: 20px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #a0a0a0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label .input-icon {
  font-size: 16px;
  color: var(--primary);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  background-color: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 143, 0, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pill {
  border-radius: 100px;
}

.btn-primary {
  background-color: var(--primary);
  color: #121212;
}

.btn-primary:hover {
  background-color: var(--primary-hover, #e67e00);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 143, 0, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

.button-icon {
  font-size: 18px;
}

/* Custom Select Dropdown Styling */
select.form-control,
form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF8F00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 16px;
  padding-right: 46px;
}

select.admin-select,
.admin-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23FF8F00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 30px;
}
