/* FLOYNEX AGENT - GLOBAL BRAND STYLES */
/*FLOYNEXAGENT\admin\css\styles.css*/
:root {
  --primary-green: #2ecc71;
  --header-green: #38b44a;
  --dark-green: #1e7e34;
  --light-mint: #e8f8f5;
  --bg-gray: #f4f6f9;
  --card-white: #ffffff;
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --border-color: #e0e0e0;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
/* Brand Logo Container & Image */
.brand-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.brand-logo {
  max-width: 150px;
  max-height: 55px;
  object-fit: contain;
}
body {
  background-color: var(--bg-gray);
  color: var(--text-dark);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

/* App Wrapper for Mobile/Responsive Feel */
.app-container {
  width: 100%;
  max-width: 480px;
  background: var(--card-white);
  min-height: 100vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

/* Brand Top Bar */
.brand-header {
  background-color: var(--header-green);
  color: #fff;
  padding: 24px 20px;
  text-align: center;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.brand-header h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-header p {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 4px;
}

/* Form Styling */
.form-card {
  padding: 24px 20px;
  flex: 1;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease;
  background: #fdfdfd;
}

.form-control:focus {
  border-color: var(--primary-green);
  background: #fff;
}

.toggle-password {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Row Layout for Side-by-Side Inputs */
.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

/* Primary Button */
.btn-primary {
  width: 100%;
  background-color: var(--primary-green);
  color: white;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3);
  margin-top: 10px;
  transition: transform 0.1s ease, background-color 0.2s ease;
}

.btn-primary:active {
  transform: scale(0.98);
  background-color: var(--dark-green);
}

.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-links a {
  color: var(--header-green);
  text-decoration: none;
  font-weight: 700;
}

/* Alert Notification Banner */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-success {
  background-color: var(--light-mint);
  color: var(--dark-green);
  border: 1px solid #c3e6cb;
}
/* Additional Helper Styles for Signin Page */
.form-options {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
  margin-bottom: 16px;
}

.forgot-link {
  font-size: 12px;
  color: var(--header-green);
  text-decoration: none;
  font-weight: 600;
}

.forgot-link:hover {
  text-decoration: underline;
}

/* DASHBOARD EXTENSIONS FOR MOBILE APP LAYOUT */
.dashboard-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.hamburger-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.profile-avatar-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  overflow: hidden;
  background: var(--light-mint);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.profile-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.greeting-block {
  text-align: left;
  margin-top: 6px;
}

.greeting-block h2 {
  font-size: 22px;
  font-weight: 700;
}

.greeting-block p {
  font-size: 13px;
  opacity: 0.9;
}

/* Bottom Navigation Bar */
.bottom-nav {
  position: sticky;
  bottom: 0;
  width: 100%;
  background: var(--card-white);
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0 12px 0;
  margin-top: auto;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.03);
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
}

.nav-link i {
  font-size: 18px;
}

.nav-link.active {
  color: var(--header-green);
}
/* ==========================================
   SIDEBAR MENU & OVERLAY STYLES
   ========================================== */
.app-container {
  position: relative;
  overflow-x: hidden; /* Prevents unwanted horizontal scroll during slide */
}

/* Darkened background backdrop */
.sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Green Sidebar Panel */
.sidebar-menu {
  position: absolute;
  top: 0;
  left: 0;
  width: 78%; /* Slides smoothly ~3/4 across app container */
  max-width: 320px;
  height: 100%;
  background: linear-gradient(180deg, var(--dark-green) 0%, var(--header-green) 100%);
  color: #ffffff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%); /* Hides out to the left */
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
}

.sidebar-menu.active {
  transform: translateX(0); /* Softly slides in from left to right */
}

/* Sidebar Top Section */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-avatar-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
}

.sidebar-avatar-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-profile-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.sidebar-profile-info span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.sidebar-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Sidebar Navigation Items */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  gap: 4px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.sidebar-link i {
  font-size: 18px;
  width: 22px;
  text-align: center;
}

.sidebar-link:hover,
.sidebar-link.active {
  background-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.sidebar-link.logout-link {
  margin-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 18px;
  color: #ffcdd2;
}

.sidebar-link.logout-link:hover {
  background-color: rgba(231, 76, 60, 0.2);
  color: #ffffff;
}

/*####################################################*/
    /* Inline CSS Extensions specific to Create & Manage Agents UI */
    .action-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }

    .action-header h3 {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-dark);
    }

    .btn-create-agent {
      background-color: var(--primary-green);
      color: #fff;
      border: none;
      padding: 8px 14px;
      font-size: 13px;
      font-weight: 700;
      border-radius: 20px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      box-shadow: 0 3px 8px rgba(46, 204, 113, 0.3);
      transition: transform 0.1s ease, background-color 0.2s ease;
    }

    .btn-create-agent:active {
      transform: scale(0.96);
      background-color: var(--dark-green);
    }

    /* Stats Badge Grid */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      margin-bottom: 20px;
    }

    .stat-card {
      background: #fdfdfd;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 12px 8px;
      text-align: center;
      box-shadow: var(--shadow);
    }

    .stat-card .stat-value {
      font-size: 18px;
      font-weight: 700;
      color: var(--text-dark);
    }

    .stat-card .stat-label {
      font-size: 10px;
      font-weight: 600;
      color: var(--text-muted);
      text-transform: uppercase;
      margin-top: 2px;
    }

    /* Filter Toolbar & Status Select */
    .filter-bar {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 16px;
    }

    .search-input-wrapper {
      position: relative;
      width: 100%;
    }

    .search-input-wrapper i {
      position: absolute;
      left: 12px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 14px;
    }

    .search-input-wrapper input {
      padding-left: 36px;
    }

    .filter-select {
      width: 100%;
      padding: 10px 12px;
      font-size: 13px;
      border: 1.5px solid var(--border-color);
      border-radius: var(--radius-md);
      background: #fff;
      color: var(--text-dark);
      outline: none;
      font-weight: 600;
    }

    /* Applications Data List */
    .applications-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .app-card {
      background: #ffffff;
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.03);
    }

    .app-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      border-bottom: 1px dashed var(--border-color);
      padding-bottom: 6px;
    }

    .app-card-name {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-dark);
    }

    .app-card-date {
      font-size: 11px;
      color: var(--text-muted);
    }

    .app-card-body {
      display: flex;
      flex-direction: column;
      gap: 4px;
      font-size: 12px;
      color: var(--text-dark);
    }

    .app-card-body span i {
      width: 16px;
      color: var(--header-green);
    }

    .app-card-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 4px;
      padding-top: 6px;
    }

    /* Badges */
    .status-badge {
      padding: 4px 8px;
      border-radius: 12px;
      font-size: 10px;
      font-weight: 700;
      text-transform: uppercase;
    }

    .status-PENDING { background: #fff3cd; color: #856404; }
    .status-UNDER_REVIEW { background: #cce5ff; color: #004085; }
    .status-APPROVED { background: #d4edda; color: #155724; }
    .status-REJECTED { background: #f8d7da; color: #721c24; }
    .status-NEEDS_CORRECTION { background: #e2e3e5; color: #383d41; }

    .btn-view {
      background-color: var(--bg-gray);
      color: var(--text-dark);
      border: 1px solid var(--border-color);
      padding: 5px 12px;
      font-size: 12px;
      font-weight: 600;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .btn-view:hover {
      background-color: var(--light-mint);
      border-color: var(--primary-green);
      color: var(--dark-green);
    }

    /* Modal Styling */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      display: none;
      justify-content: center;
      align-items: center;
      padding: 16px;
    }

    .modal-container {
      background: var(--card-white);
      width: 100%;
      max-width: 440px;
      max-height: 90vh;
      border-radius: var(--radius-lg);
      overflow-y: auto;
      box-shadow: 0 10px 25px rgba(0,0,0,0.2);
      display: flex;
      flex-direction: column;
    }

    .modal-header {
      padding: 16px 20px;
      border-bottom: 1px solid var(--border-color);
      display: flex;
      justify-content: space-between;
      align-items: center;
      background: var(--bg-gray);
      position: sticky;
      top: 0;
      z-index: 2;
    }

    .modal-header h4 {
      font-size: 16px;
      font-weight: 700;
    }

    .modal-close-btn {
      background: none;
      border: none;
      font-size: 18px;
      color: var(--text-muted);
      cursor: pointer;
    }

    .modal-body {
      padding: 20px;
      flex: 1;
    }

    .modal-footer {
      padding: 12px 20px;
      border-top: 1px solid var(--border-color);
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      background: #fdfdfd;
      position: sticky;
      bottom: 0;
      z-index: 2;
    }

    .btn-cancel {
      background: #808080;
      color: #fff;
      border: none;
      padding: 10px 18px;
      font-weight: 600;
      border-radius: 20px;
      cursor: pointer;
    }

    .btn-apply {
      background: var(--primary-green);
      color: #fff;
      border: none;
      padding: 10px 22px;
      font-weight: 700;
      border-radius: 20px;
      cursor: pointer;
    }

    .file-input-label {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 4px;
      display: block;
    }
