/* ===========================
   Home Page Body
=========================== */
.home-body {
  background: #f0f4f8;
  font-family: 'Segoe UI', sans-serif;
}

/* ===========================
   Login Page Body
=========================== */
.login-body {
  background: #f0f4f8;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* ===========================
   Orders Page Body
=========================== */
.orders-body {
  background: #f0f4f8;
  font-family: 'Segoe UI', sans-serif;
}

/* ===========================
   Order Detail Page Body
=========================== */
.order-detail-body {
  background: #f0f4f8;
  font-family: 'Segoe UI', sans-serif;
}


/* ===========================
   Home Page — Hero Section
=========================== */
.hero {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.hero h1 {
  font-weight: 700;
  color: #1a1a2e;
}

.hero p {
  color: #6c757d;
  font-size: 16px;
}

/* ===========================
   Branding
=========================== */
.brand h4 {
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.brand p {
  color: #6c757d;
  font-size: 13px;
  margin-top: 4px;
}

/* ===========================
   Buttons
=========================== */

.btn-login {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: rgb(174,228,255);
  color: black;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 20px;
  text-decoration: none;  
  margin-top: 20px;
}


.btn-login:hover {
  background: #2d2d4e;
  color: #fff;
}


.home-to-login {
  display: inline-block;  
  box-sizing: border-box;
  background: rgb(174,228,255);
  color: black;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 20px;
  text-decoration: none;  
  margin-top: 20px;
}


/* ===========================
   AC Models Cards
=========================== */
.ac-models .card-img-top {
  height: 250px;
  object-fit: cover;
}

.ac-models .card {
  height: 100%;
}

/* ===========================
   Agent description on home
=========================== */

.agent-architecture-image {
    max-width: 900px;
    margin: 20px auto;
}



/* ===========================
   Login Page — Card
=========================== */
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* ===========================
   Login Page — Form
=========================== */
.form-label {
  font-size: 13px;
  color: #495057;
  font-weight: 500;
}

.form-control {
  border-radius: 8px;
  border: 1px solid #dee2e6;
  padding: 10px 14px;
  font-size: 14px;
}

.form-control:focus {
  border-color: #6c5ce7;
  box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}

/* ===========================
   Login Page — Demo Hint
=========================== */
.demo-hint {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 12px;
  color: #6c757d;
  margin-top: 20px;
  text-align: center;
}

.demo-hint strong {
  color: #495057;
}

/* ===========================
   Login Page — Error Message
=========================== */
.error-msg {
  background: #fff5f5;
  border: 1px solid #f8d7da;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #842029;
  margin-bottom: 16px;
}


/* ===========================
   Orders Page — Navbar
=========================== */
.navbar {
  background: #1a1a2e;
  padding: 14px 24px;
}

.navbar-brand {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.navbar-text {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.logout-btn {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 16px;
  padding: 0;
}

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

/* ===========================
   Orders Page — Header
=========================== */
.page-header {
  padding: 32px 0 16px;
}

.page-header h5 {
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.page-header p {
  color: #6c757d;
  font-size: 13px;
  margin: 4px 0 0;
}

/* ===========================
   Orders Page — Order Cards
=========================== */
.order-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-product {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 14px;
  margin: 0;
}

.order-meta {
  font-size: 12px;
  color: #6c757d;
  margin: 4px 0 0;
}

.order-amount {
  font-weight: 700;
  color: #1a1a2e;
  font-size: 15px;
}

/* ===========================
   Orders Page — Status Badges
=========================== */
.badge-pending {
  background: #cfe2ff;
  color: #084298;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.badge-dispatched {
  background: #fff3cd;
  color: #856404;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.badge-delivered {
  background: #d1e7dd;
  color: #0a3622;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.badge-cancelled {
  background: #f8d7da;
  color: #58151c;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

/* ===========================
   Orders Page — View Button
=========================== */
.btn-view {
  font-size: 12px;
  padding: 6px 16px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #495057;
  text-decoration: none;
  background: #fff;
}

.btn-view:hover {
  background: #f8f9fa;
  color: #1a1a2e;
}


/* ===========================
   Order Detail Page — Navbar
=========================== */
.navbar {
  background: #1a1a2e;
  padding: 14px 24px;
}

.navbar-brand {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.navbar-text {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.logout-btn {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 16px;
  padding: 0;
}

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

/* ===========================
   Order Detail Page — Back Link
=========================== */
.back-link {
  font-size: 13px;
  color: #6c757d;
  text-decoration: none;
  display: inline-block;
  margin: 24px 0 16px;
}

.back-link:hover {
  color: #1a1a2e;
}

/* ===========================
   Order Detail Page — Detail Card
=========================== */
.detail-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 16px;
}

.detail-card h6 {
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 20px;
  font-size: 15px;
}

.detail-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 13px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  color: #6c757d;
  width: 160px;
  flex-shrink: 0;
}

.detail-value {
  color: #1a1a2e;
  font-weight: 500;
}

/* ===========================
   Order Detail Page — Status Badges
=========================== */
.badge-pending {
  background: #cfe2ff;
  color: #084298;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.badge-dispatched {
  background: #fff3cd;
  color: #856404;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.badge-delivered {
  background: #d1e7dd;
  color: #0a3622;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.badge-cancelled {
  background: #f8d7da;
  color: #58151c;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

/* ===========================
   Order Detail Page — Refund Items
=========================== */
.refund-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 13px;
}

.refund-item:last-child {
  border-bottom: none;
}

.refund-reason {
  color: #495057;
}

.badge-approved {
  background: #d1e7dd;
  color: #0a3622;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.badge-denied {
  background: #f8d7da;
  color: #58151c;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

/* =========================================================================
   Order Detail Page / order_detail.html / Help Card
============================================================================ */
.help-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  text-align: center;
}

.help-card h6 {
  font-weight: 700;
  color: #1a1a2e;
  margin: 16px 0 8px;
}

.help-card p {
  font-size: 13px;
  color: #6c757d;
  margin: 0 0 20px;
}

.btn-help {
  background: #1a1a2e;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  width: 100%;
}

.btn-help:hover {
  background: #2d2d4e;
  color: #fff;
}

/* ==========================================================================
   Order Detail Page — Chat Box - order_detail.html
============================================================================= */
#chat-box {
  height: 500px;
  display: none;
  flex-direction: column;
}

#chat-box.visible {
  display: flex;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
}

/*  agent-message formatiert die Agent-Nachrichten in Chatbot-div in order_details.html
    customer-messae formatiert User-Input in chatbot-div in order_details.html */

.agent-message {
  background: #f3f4f6;
  border-radius: 0 10px 10px 10px;
  white-space: pre-line;
}

.customer-message {
  background-color: #1a1a2e;
  color: #fff;
  border-radius: 10px 0 10px 10px;
  margin-left: auto;
}

/* ==========================================================================
   order_detail.html - to show AI support workflow steps in a panel
============================================================================= */
/* ===========================
   AI SUPPORT WORKFLOW
=========================== */

#workflow-panel .workflow-step {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 12px;
}

/* ICON */
#workflow-panel .step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    min-width: 18px;
    
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

/* STEP NAME */
#workflow-panel .step-name {
    font-weight: 600;
}

/* STATUS */
#workflow-panel .step-status {
    margin-left: 2px;
}

/* ===========================
   COMPLETED = GREEN
=========================== */

#workflow-panel .workflow-step.completed .step-icon,
#workflow-panel .workflow-step.completed .step-status {
    color: #198754;
    font-weight: 700;
}

/* ===========================
   IN PROGRESS
=========================== */

#workflow-panel .workflow-step.in-progress .step-icon,
#workflow-panel .workflow-step.in-progress .step-status {
    color: #6c757d;
    font-weight: 700;
}

/* ===========================
   NOT NEEDED = YELLOW
=========================== */

#workflow-panel .workflow-step.skipped .step-icon,
#workflow-panel .workflow-step.skipped .step-status {
    color: #d39e00;
    font-weight: 700;
}

/* ===========================
   FAILED = RED
=========================== */

#workflow-panel .workflow-step.failed .step-icon,
#workflow-panel .workflow-step.failed .step-status {
    color: #dc3545;
    font-weight: 700;
}


/* AI WORKFLOW COLORS */

#workflow-panel .workflow-step.completed .step-icon {
    color: #198754 !important;
}

#workflow-panel .workflow-step.completed .step-status {
    color: #198754 !important;
    font-weight: 700 !important;
}

#workflow-panel .workflow-step.skipped .step-icon {
    color: #d39e00 !important;
}

#workflow-panel .workflow-step.skipped .step-status {
    color: #d39e00 !important;
    font-weight: 700 !important;
}

#workflow-panel .workflow-step.in-progress .step-icon {
    color: #6c757d !important;
}

#workflow-panel .workflow-step.in-progress .step-status {
    color: #6c757d !important;
    font-weight: 700 !important;
}

#workflow-panel .workflow-step.failed .step-icon {
    color: #dc3545 !important;
}

#workflow-panel .workflow-step.failed .step-status {
    color: #dc3545 !important;
    font-weight: 700 !important;
}

THIS_IS_A_TEST {
    color: red !important;
}

/* ==========================================================================
   Dashboard_base.html - auf smartphones nach oben geschoben und responsive
============================================================================= */

.sidebar {
    width: 240px;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
    }
}

/* ==========================================================================
   Dashboard.html - 
============================================================================= */

.agent-card {
    width: 75%;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .agent-card {
        width: 100%;
    }
}

