/*
 * ============================================================================
 * ALPION SYSTEMS
 * RentFlow Enterprise Demo V1
 * Operations Center V3
 *
 * Entwickler:
 * Kamran Sarhangzadeh Azizi
 *
 * Copyright (c) 2026
 * Kamran Sarhangzadeh Azizi / Alpion Systems.
 * ============================================================================
 */


/* ============================================================================
   OPERATIONS CENTER V3
   ========================================================================== */

.rf-ops-v3 {
  display: grid;
  gap: 16px;
}


/* ============================================================================
   TOPBAR
   ========================================================================== */

.rf-ops-topbar {
  display: grid;

  grid-template-columns:
    minmax(300px, 520px)
    1fr
    auto;

  align-items: center;

  gap: 18px;

  min-height: 58px;

  margin-bottom: 6px;
}


.rf-ops-search {
  position: relative;
}


.rf-ops-search-icon {
  position: absolute;

  left: 14px;
  top: 50%;

  display: grid;
  place-items: center;

  width: 20px;
  height: 20px;

  color: var(--rf-muted);

  transform:
    translateY(-50%);

  pointer-events: none;
}


.rf-ops-search-input {
  width: 100%;
  height: 42px;

  padding:
    0 78px
    0 44px;

  color:
    var(--rf-text);

  background:
    rgba(8, 22, 40, 0.92);

  border:
    1px solid
    var(--rf-border);

  border-radius:
    12px;

  outline: none;

  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}


.rf-ops-search-input:hover {
  border-color:
    var(--rf-border-light);
}


.rf-ops-search-input:focus {
  background:
    #0a192c;

  border-color:
    var(--rf-primary);

  box-shadow:
    0 0 0 3px
    rgba(34, 211, 238, 0.09);
}


.rf-ops-search-input::placeholder {
  color:
    #6d829e;
}


.rf-ops-search-shortcut {
  position: absolute;

  right: 9px;
  top: 50%;

  transform:
    translateY(-50%);

  padding:
    4px 8px;

  color:
    var(--rf-muted);

  background:
    rgba(255, 255, 255, 0.04);

  border:
    1px solid
    var(--rf-border);

  border-radius:
    7px;

  font-size:
    10px;

  font-weight:
    750;
}


/* ============================================================================
   TOPBAR AKTIONEN
   ========================================================================== */

.rf-ops-top-actions {
  display: flex;

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

  gap: 8px;
}


.rf-ops-top-icon {
  position: relative;

  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;

  padding: 0;

  color:
    var(--rf-text-soft);

  background:
    rgba(255, 255, 255, 0.025);

  border:
    1px solid
    transparent;

  border-radius:
    10px;
}


.rf-ops-top-icon:hover {
  color:
    var(--rf-primary);

  background:
    var(--rf-primary-soft);

  border-color:
    rgba(34, 211, 238, 0.18);
}


.rf-ops-notification-count {
  position: absolute;

  right: -3px;
  top: -3px;

  display: grid;
  place-items: center;

  min-width: 17px;
  height: 17px;

  padding:
    0 4px;

  color:
    #ffffff;

  background:
    var(--rf-danger);

  border:
    2px solid
    var(--rf-bg);

  border-radius:
    999px;

  font-size:
    8px;

  font-weight:
    900;
}


/* ============================================================================
   BENUTZER
   ========================================================================== */

.rf-ops-user {
  display: flex;
  align-items: center;

  gap: 10px;

  min-width: 190px;

  padding:
    5px 8px;

  border-radius:
    11px;
}


.rf-ops-user:hover {
  background:
    rgba(255, 255, 255, 0.025);
}


.rf-ops-avatar {
  display: grid;
  place-items: center;

  flex:
    0 0 36px;

  width: 36px;
  height: 36px;

  color:
    white;

  background:
    linear-gradient(
      135deg,
      #164e76,
      #2563a6
    );

  border:
    1px solid
    rgba(255, 255, 255, 0.10);

  border-radius:
    999px;

  font-size:
    11px;

  font-weight:
    900;
}


.rf-ops-user-name {
  color:
    var(--rf-white);

  font-size:
    11px;

  font-weight:
    800;
}


.rf-ops-user-role {
  margin-top: 1px;

  color:
    var(--rf-muted);

  font-size:
    9px;
}


/* ============================================================================
   PREMIUM HERO
   ========================================================================== */

.rf-ops-hero {
  position: relative;

  min-height: 196px;

  overflow: hidden;

  background:
    linear-gradient(
      90deg,
      rgba(7, 20, 38, 0.98) 0%,
      rgba(8, 28, 51, 0.90) 37%,
      rgba(8, 37, 61, 0.55) 63%,
      rgba(9, 29, 46, 0.40) 100%
    );

  border:
    1px solid
    var(--rf-border);

  border-radius:
    17px;

  box-shadow:
    0 20px 55px
    rgba(0, 0, 0, 0.24);
}


.rf-ops-hero::after {
  content: "";

  position: absolute;

  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      rgba(34, 211, 238, 0.025),
      rgba(0, 0, 0, 0.08)
    );
}


.rf-ops-hero-image {
  position: absolute;

  inset:
    0 0 0
    42%;

  background:
    linear-gradient(
      90deg,
      #092038,
      #0b3151
    );

  background-size:
    cover;

  background-position:
    center right;

  opacity:
    0.94;
}


.rf-ops-hero-image::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      #071426 0%,
      rgba(7, 20, 38, 0.85) 16%,
      rgba(7, 20, 38, 0.20) 55%,
      rgba(7, 20, 38, 0.14) 100%
    );
}


.rf-ops-hero-content {
  position: relative;

  z-index: 2;

  display: flex;
  flex-direction: column;
  justify-content: center;

  width: 62%;
  min-height: 196px;

  padding:
    25px 30px;
}


.rf-ops-eyebrow {
  margin-bottom: 8px;

  color:
    var(--rf-primary);

  font-size:
    10px;

  font-weight:
    900;

  text-transform:
    uppercase;

  letter-spacing:
    0.16em;
}


.rf-ops-greeting {
  margin: 0;

  max-width: 680px;

  color:
    #ffffff;

  font-size:
    clamp(
      29px,
      3.1vw,
      43px
    );

  line-height:
    1.08;

  letter-spacing:
    -0.035em;

  font-weight:
    900;
}


.rf-ops-greeting-accent {
  color:
    var(--rf-primary);
}


.rf-ops-hero-description {
  max-width: 600px;

  margin:
    9px 0 0;

  color:
    #9eb4cf;

  font-size:
    13px;

  line-height:
    1.55;
}


/* ============================================================================
   HERO META INFORMATIONEN
   ========================================================================== */

.rf-ops-meta {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin-top: 18px;
}


.rf-ops-meta-item {
  display: inline-flex;

  align-items: center;

  gap: 8px;

  min-height: 32px;

  padding:
    6px 10px;

  color:
    var(--rf-text-soft);

  background:
    rgba(3, 13, 26, 0.52);

  border:
    1px solid
    rgba(105, 151, 194, 0.25);

  border-radius:
    8px;

  backdrop-filter:
    blur(8px);

  font-size:
    10px;

  font-weight:
    720;
}


.rf-ops-meta-item svg {
  color:
    var(--rf-primary);
}


/* ============================================================================
   HERO CLAIM
   ========================================================================== */

.rf-ops-hero-claim {
  position: absolute;

  z-index: 2;

  right: 28px;
  top: 50%;

  width: 210px;

  transform:
    translateY(-50%);

  color:
    white;

  text-align:
    right;
}


.rf-ops-hero-claim-title {
  font-size:
    18px;

  line-height:
    1.12;

  font-weight:
    900;
}


.rf-ops-hero-claim-copy {
  margin-top:
    9px;

  color:
    #a8bdd5;

  font-size:
    11px;

  line-height:
    1.45;
}


/* ============================================================================
   KPI ROW V3
   ========================================================================== */

.rf-ops-kpis {
  display: grid;

  grid-template-columns:
    repeat(
      8,
      minmax(115px, 1fr)
    );

  gap: 9px;
}


.rf-ops-kpi {
  position: relative;

  display: flex;

  align-items:
    center;

  gap: 11px;

  min-height:
    91px;

  padding:
    14px;

  overflow: hidden;

  background:
    linear-gradient(
      145deg,
      rgba(18, 37, 62, 0.96),
      rgba(10, 27, 47, 0.96)
    );

  border:
    1px solid
    var(--rf-border);

  border-radius:
    13px;

  transition:
    transform 140ms ease,
    border-color 140ms ease;
}


.rf-ops-kpi:hover {
  transform:
    translateY(-2px);

  border-color:
    var(--rf-border-light);
}


.rf-ops-kpi.primary {
  border-color:
    rgba(34, 211, 238, 0.50);
}


.rf-ops-kpi-icon {
  display: grid;
  place-items: center;

  flex:
    0 0 40px;

  width:
    40px;

  height:
    40px;

  color:
    var(--rf-primary);

  background:
    var(--rf-primary-soft);

  border-radius:
    11px;
}


.rf-ops-kpi.success
.rf-ops-kpi-icon {
  color:
    var(--rf-success);

  background:
    var(--rf-success-soft);
}


.rf-ops-kpi.warning
.rf-ops-kpi-icon {
  color:
    var(--rf-warning);

  background:
    var(--rf-warning-soft);
}


.rf-ops-kpi.danger
.rf-ops-kpi-icon {
  color:
    var(--rf-danger);

  background:
    var(--rf-danger-soft);
}


.rf-ops-kpi-label {
  color:
    #9cb0c9;

  font-size:
    9px;

  font-weight:
    820;
}


.rf-ops-kpi-value {
  margin-top:
    2px;

  color:
    white;

  font-size:
    22px;

  line-height:
    1;

  font-weight:
    900;
}


.rf-ops-kpi-note {
  margin-top:
    5px;

  color:
    var(--rf-muted);

  font-size:
    8px;
}


/* ============================================================================
   SECTIONS
   ========================================================================== */

.rf-ops-section {
  padding:
    17px;

  background:
    linear-gradient(
      145deg,
      rgba(15, 31, 53, 0.97),
      rgba(10, 24, 42, 0.97)
    );

  border:
    1px solid
    var(--rf-border);

  border-radius:
    14px;
}


.rf-ops-section-header {
  display: flex;

  justify-content:
    space-between;

  align-items:
    center;

  gap:
    12px;

  margin-bottom:
    13px;
}


.rf-ops-section-title {
  display: flex;

  align-items:
    center;

  gap:
    9px;

  margin: 0;

  color:
    white;

  font-size:
    15px;

  font-weight:
    880;
}


.rf-ops-section-title svg {
  color:
    var(--rf-primary);
}


.rf-ops-section-description {
  margin-top:
    2px;

  color:
    var(--rf-muted);

  font-size:
    9px;
}


/* ============================================================================
   SCHNELLAKTIONEN
   ========================================================================== */

.rf-ops-quick-grid {
  display: grid;

  grid-template-columns:
    repeat(
      8,
      minmax(105px, 1fr)
    );

  gap:
    9px;
}


.rf-ops-quick {
  display: flex;

  align-items:
    center;

  gap:
    10px;

  min-height:
    70px;

  padding:
    12px;

  color:
    var(--rf-text-soft);

  background:
    linear-gradient(
      145deg,
      #102540,
      #0b1c31
    );

  border:
    1px solid
    var(--rf-border);

  border-radius:
    11px;

  text-align:
    left;

  transition:
    transform 140ms ease,
    color 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}


.rf-ops-quick:hover {
  transform:
    translateY(-2px);

  color:
    white;

  background:
    var(--rf-primary-soft);

  border-color:
    var(--rf-primary);
}


.rf-ops-quick-icon {
  display: grid;

  place-items:
    center;

  flex:
    0 0 34px;

  width:
    34px;

  height:
    34px;

  color:
    var(--rf-primary);

  background:
    var(--rf-primary-soft);

  border-radius:
    9px;
}


.rf-ops-quick-title {
  color:
    white;

  font-size:
    10px;

  font-weight:
    850;
}


.rf-ops-quick-copy {
  margin-top:
    2px;

  color:
    var(--rf-muted);

  font-size:
    8px;
}


/* ============================================================================
   OPERATIONS GRID
   ========================================================================== */

.rf-ops-main-grid {
  display: grid;

  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(300px, 0.88fr)
    minmax(320px, 0.94fr);

  gap:
    13px;

  align-items:
    stretch;
}


/* ============================================================================
   TIMELINE
   ========================================================================== */

.rf-ops-timeline {
  display: grid;

  gap: 0;
}


.rf-ops-timeline-row {
  display: grid;

  grid-template-columns:
    48px
    20px
    minmax(0, 1fr);

  gap:
    8px;

  min-height:
    52px;
}


.rf-ops-time {
  padding-top:
    5px;

  color:
    var(--rf-text-soft);

  font-size:
    10px;

  font-weight:
    800;
}


.rf-ops-timeline-line {
  position: relative;

  display: flex;

  justify-content:
    center;
}


.rf-ops-timeline-line::after {
  content: "";

  position: absolute;

  top: 15px;
  bottom:
    -2px;

  width:
    1px;

  background:
    var(--rf-border);
}


.rf-ops-timeline-row:last-child
.rf-ops-timeline-line::after {
  display: none;
}


.rf-ops-timeline-dot {
  position: relative;

  z-index: 1;

  width:
    9px;

  height:
    9px;

  margin-top:
    7px;

  background:
    var(--rf-primary);

  border:
    2px solid
    var(--rf-surface-2);

  border-radius:
    999px;
}


.rf-ops-timeline-content {
  padding:
    2px 0 12px;

  border-bottom:
    1px solid
    rgba(41, 65, 95, 0.55);
}


.rf-ops-timeline-title {
  color:
    white;

  font-size:
    10px;

  font-weight:
    820;
}


.rf-ops-timeline-copy {
  margin-top:
    2px;

  color:
    var(--rf-muted);

  font-size:
    8px;
}


/* ============================================================================
   TASKS
   ========================================================================== */

.rf-ops-task-list {
  display: grid;

  gap:
    7px;
}


.rf-ops-task {
  display: flex;

  align-items:
    center;

  gap:
    10px;

  padding:
    10px;

  color:
    var(--rf-text-soft);

  background:
    #09182a;

  border:
    1px solid
    var(--rf-border);

  border-radius:
    10px;

  cursor:
    pointer;
}


.rf-ops-task:hover {
  border-color:
    var(--rf-primary);
}


.rf-ops-task-icon {
  display: grid;
  place-items: center;

  flex:
    0 0 32px;

  width:
    32px;
  height:
    32px;

  color:
    var(--rf-warning);

  background:
    var(--rf-warning-soft);

  border-radius:
    8px;
}


.rf-ops-task.success
.rf-ops-task-icon {
  color:
    var(--rf-success);

  background:
    var(--rf-success-soft);
}


.rf-ops-task.danger
.rf-ops-task-icon {
  color:
    var(--rf-danger);

  background:
    var(--rf-danger-soft);
}


.rf-ops-task-body {
  flex: 1;

  min-width: 0;
}


.rf-ops-task-title {
  color:
    white;

  font-size:
    9px;

  font-weight:
    820;
}


.rf-ops-task-copy {
  margin-top:
    2px;

  color:
    var(--rf-muted);

  font-size:
    8px;
}


/* ============================================================================
   LETZTE FAHRZEUGE
   ========================================================================== */

.rf-ops-recent-grid {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  gap:
    9px;
}


.rf-ops-vehicle-card {
  display: grid;

  grid-template-columns:
    94px
    minmax(0, 1fr);

  gap:
    11px;

  min-height:
    88px;

  padding:
    9px;

  color:
    var(--rf-text);

  background:
    #0b1c31;

  border:
    1px solid
    var(--rf-border);

  border-radius:
    11px;

  cursor:
    pointer;
}


.rf-ops-vehicle-card:hover {
  border-color:
    var(--rf-primary);
}


.rf-ops-vehicle-image {
  display: grid;
  place-items: center;

  width:
    94px;
  height:
    70px;

  overflow:
    hidden;

  color:
    var(--rf-primary);

  background:
    radial-gradient(
      circle,
      rgba(34, 211, 238, 0.16),
      transparent 65%
    ),
    #081523;

  border:
    1px solid
    var(--rf-border);

  border-radius:
    9px;
}


.rf-ops-vehicle-image img {
  width:
    100%;

  height:
    100%;

  object-fit:
    cover;
}


.rf-ops-vehicle-title {
  color:
    white;

  font-size:
    11px;

  font-weight:
    850;
}


.rf-ops-vehicle-registration {
  margin-top:
    2px;

  color:
    var(--rf-muted);

  font-size:
    9px;
}


.rf-ops-vehicle-status {
  display:
    inline-flex;

  align-items:
    center;

  gap:
    5px;

  margin-top:
    7px;

  color:
    var(--rf-success);

  font-size:
    9px;

  font-weight:
    800;
}


.rf-ops-vehicle-status::before {
  content: "";

  width:
    7px;

  height:
    7px;

  background:
    currentColor;

  border-radius:
    999px;
}


/* ============================================================================
   VISUELLER PLATZHALTER
   ========================================================================== */

.rf-ops-image-placeholder {
  display: grid;

  place-items:
    center;

  width:
    100%;

  height:
    100%;

  color:
    rgba(103, 232, 249, 0.78);

  background:
    radial-gradient(
      circle at 70% 50%,
      rgba(34, 211, 238, 0.18),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #09243b,
      #071625
    );
}


/* ============================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1500px) {

  .rf-ops-kpis {
    grid-template-columns:
      repeat(
        4,
        minmax(130px, 1fr)
      );
  }


  .rf-ops-quick-grid {
    grid-template-columns:
      repeat(
        4,
        minmax(130px, 1fr)
      );
  }


  .rf-ops-recent-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }

}


@media (max-width: 1180px) {

  .rf-ops-main-grid {
    grid-template-columns:
      1fr 1fr;
  }


  .rf-ops-main-grid
  > :first-child {
    grid-column:
      1 / -1;
  }


  .rf-ops-hero-claim {
    display:
      none;
  }


  .rf-ops-hero-content {
    width:
      75%;
  }

}


@media (max-width: 820px) {

  .rf-ops-topbar {
    grid-template-columns:
      1fr auto;
  }


  .rf-ops-user {
    min-width:
      auto;
  }


  .rf-ops-user-copy {
    display:
      none;
  }


  .rf-ops-hero-content {
    width:
      100%;

    background:
      linear-gradient(
        90deg,
        rgba(7, 20, 38, 0.96),
        rgba(7, 20, 38, 0.68)
      );
  }


  .rf-ops-kpis,
  .rf-ops-quick-grid {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );
  }


  .rf-ops-main-grid {
    grid-template-columns:
      1fr;
  }


  .rf-ops-main-grid
  > :first-child {
    grid-column:
      auto;
  }

}


@media (max-width: 560px) {

  .rf-ops-kpis,
  .rf-ops-quick-grid,
  .rf-ops-recent-grid {
    grid-template-columns:
      1fr;
  }


  .rf-ops-hero {
    min-height:
      230px;
  }


  .rf-ops-hero-content {
    min-height:
      230px;

    padding:
      20px;
  }


  .rf-ops-meta {
    flex-direction:
      column;

    align-items:
      flex-start;
  }

}


