@charset "UTF-8";
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *
 */
@import url("https://cdn.jsdelivr.net/npm/jquery-ui@1.13.3/themes/base/theme.min.css");
@import url("https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css");
/* =========================================================
   Dashboard Custom Styles
   ========================================================= */
.stat-card {
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-40, .icon-32 {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.icon-40 {
  width: 40px;
  height: 40px;
}

.icon-32 {
  width: 32px;
  height: 32px;
}

.list-row {
  transition: background-color 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}
.list-row:hover {
  background-color: rgba(0, 0, 0, 0.015);
  transform: translateY(-1px);
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

/* Wizard Form Styles */
#wizard-nav {
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

.progress-thin {
  width: 75%;
  height: 2px;
}

.size-24,
.avatar-initial {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

.step-circle {
  width: 48px;
  height: 48px;
  font-weight: 600;
  z-index: 2;
}

.pre-content,
.secured_content {
  max-height: 150px;
  overflow-y: auto;
  white-space: pre-wrap;
  display: none;
}

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  position: static;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.shadow-sm {
  box-shadow: rgba(0, 0, 0, 0.075) 0px 0.125rem 0.25rem !important;
}

.auto-width {
  width: auto;
  min-width: 90px;
}

/* Autocomplete input */
.ui-helper-hidden-accessible {
  display: none !important;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* Recipient container and input */
.recipient-container {
  position: relative;
  border: 1px solid var(--bs-gray-300);
  border-radius: var(--bs-border-radius);
  padding: 4px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 48px;
}

.recipient-container:focus-within {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.recipient-input {
  box-sizing: border-box;
  height: 38px;
  flex: 1;
  min-width: 150px;
  border: none;
  outline: none;
  font-size: 15px;
  padding: 8px 4px;
  background-color: transparent;
}

.recipient-hidden {
  display: none !important;
}

.recipient-visible {
  display: flex !important;
}

/* Recipient list item layout */
.recipient {
  display: flex;
  align-items: center;
}

.recipient .avatar-initial {
  margin-right: 0.5rem;
}

/* Recipient list */
#recipient-list {
  max-height: 300px;
  overflow-y: auto;
  background-color: #fff;
}

.recipient-item {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  border-bottom: 1px solid #f1f1f1;
}

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

.recipient-item .flex-grow-1,
.recipient-item small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recipient-item-review:hover {
  background-color: var(--bs-light);
  cursor: default;
}

/* Scrollbar styling */
#recipient-list::-webkit-scrollbar {
  width: 8px;
}

#recipient-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

#recipient-list::-webkit-scrollbar-thumb {
  background: #adb5bd;
  border-radius: 4px;
}

#recipient-list::-webkit-scrollbar-thumb:hover {
  background: #868e96;
}

/* Autocomplete dropdown */
.custom-dropdown {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  z-index: 1050;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  position: absolute !important;
  width: 100% !important;
  max-height: 200px;
  overflow-y: auto;
}

.custom-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-dropdown-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 14px;
  background-color: var(--bs-light);
}

.custom-dropdown-item .ui-state-active {
  outline: none;
  border: none;
  background-color: #f1f3f5 !important;
  color: #212529 !important;
}

/* Monospace for pre */
#actual-content pre {
  font-family: monospace;
}

/* Step 5 - Success Screen */
#step5 > .card > .card-body > .rounded-circle {
  width: 80px;
  height: 80px;
  font-size: 40px;
}

#step5 > .card > .card-body > p.mx-auto,
#step5 > .card > .card-body > .card.mx-auto {
  max-width: 500px;
}

/* =========================================================
   custom.scss  —  Fixed sidebar + fixed header layout
   ========================================================= */
:root {
  --sidebar-width: 260px;
  --header-height: 60px;
}

/* ---------- Desktop (lg+) ---------- */
@media (min-width: 992px) {
  .sidebar {
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1030;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
  }
  .header {
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    height: var(--header-height);
    z-index: 1020;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  }
  .main-content {
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height) !important;
    min-height: calc(100vh - var(--header-height));
    width: auto;
    overflow-x: hidden;
  }
  .content-container {
    max-width: none !important;
    width: 100%;
    margin: 0 !important;
    padding: 0;
  }
  .content-container > .mx-2 {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
  }
}
/* ---------- Mobile (md and below) ---------- */
@media (max-width: 991.98px) {
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1020;
    background: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  }
  .main-content {
    margin-left: 0;
    width: 100%;
    padding-top: var(--header-height) !important;
    min-height: calc(100vh - var(--header-height));
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 1040;
    background: #fff;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow-y: auto;
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1035;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
  }
  .sidebar-backdrop.show {
    opacity: 1;
    visibility: visible;
  }
  body.noscroll {
    overflow: hidden;
  }
}
/* Sidebar navigation */
.sidebar .nav-link {
  border-left: 3px solid transparent;
  transition: all 0.2s ease-in-out;
  color: #495057;
  border-radius: 0.375rem;
}
.sidebar .nav-link:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.05);
  color: var(--bs-primary);
}
.sidebar .nav-link:hover .nav-item-icon {
  color: var(--bs-primary) !important;
}
.sidebar .nav-link.active {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  border-left-color: var(--bs-primary);
  color: var(--bs-primary);
  font-weight: 600;
}
.sidebar .nav-link.active .nav-item-icon {
  color: var(--bs-primary) !important;
}
.sidebar .nav-link i {
  padding: 0;
}

.nav-section-header {
  font-size: 0.75rem;
  text-transform: uppercase;
}

.nav-item-icon {
  display: inline-flex;
  align-items: center;
}

/* User menu */
.user-menu {
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease;
  cursor: pointer;
}
.user-menu:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.05);
}
.user-menu .dropdown-icon {
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}
.user-menu:hover .dropdown-icon {
  opacity: 0.8;
  transform: translateY(1px);
}

/* Search control */
.search-control {
  transition: all 0.2s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 180px;
  padding-left: 2rem;
}
.search-control:focus {
  background-color: #fff !important;
  border-color: rgba(var(--bs-primary-rgb), 0.5);
  box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.15);
  width: 220px;
}
.search-control + .position-absolute {
  pointer-events: none;
}

/* Button styles */
.btn {
  transition: all 0.2s ease;
}

.btn-primary:hover {
  box-shadow: 0 4px 8px rgba(var(--bs-primary-rgb), 0.2);
  transform: translateY(-1px);
}

.btn.rounded-circle:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Secrets grid */
.secrets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
@media (min-width: 1200px) {
  .secrets-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1600px) {
  .secrets-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card and header utilities */
.card-1.card {
  border-radius: 0.75rem;
  overflow: hidden;
}

.shortened-header {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Utility classes */
.btn[title=Notifications] .rounded-circle {
  width: 0.5rem;
  height: 0.5rem;
}

.tagline {
  font-size: 0.7rem;
}

.size-32, .avatar-36 {
  display: inline-block;
}

.size-32 {
  width: 32px;
  height: 32px;
}

.avatar-36 {
  width: 36px;
  height: 36px;
}

.brand-bar {
  height: var(--header-height) !important;
}

/* =========================
   Old styles for Login page
   These will be replaced with new styles
   ========================= */
:root {
  --login-card-width: 560px;
  --login-radius: 12px;
  --login-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --login-shadow-hover: 0 14px 40px rgba(0, 0, 0, 0.10);
}

.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: #f8f9fb; /* subtle */
  padding: 2rem;
}

.login-page .login-container {
  width: min(92vw, var(--login-card-width));
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--login-radius);
  box-shadow: var(--login-shadow);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  text-align: center;
  transition: box-shadow 0.2s ease;
}

.login-page .login-container:hover {
  box-shadow: var(--login-shadow-hover);
}

.login-page .login-brand {
  margin-bottom: 1.25rem;
}

.login-page .login-logo .logo {
  display: block;
  width: clamp(120px, 36vw, 180px);
  height: auto;
  margin: 0.5rem auto 1.25rem;
}

.login-page .navbar-brand.h1 {
  display: block;
  margin: 0 0 0.25rem;
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: #111;
  text-decoration: none;
}

.login-page .tagline {
  margin: 0.25rem 0 1.75rem;
  color: #6c757d;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-page .login-form {
  margin-top: 0.5rem;
}

.login-page .form-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.03), 0 6px 20px rgba(13, 110, 253, 0.15); /* uses bs-primary hue */
  transition: transform 0.08s ease, box-shadow 0.2s ease;
}

.login-page .form-buttons .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.04), 0 10px 26px rgba(13, 110, 253, 0.25);
}

.login-page .form-buttons .btn:active {
  transform: translateY(0);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.08);
}

@media (max-width: 420px) {
  .login-page {
    padding: 1rem;
  }
  .login-page .login-container {
    padding: 1.25rem;
  }
  .login-page .navbar-brand.h1 {
    font-size: clamp(2rem, 9vw, 2.5rem);
  }
  .login-page .tagline {
    font-size: 0.9rem;
  }
}
/* Secret sharing list enhancements */
.secret-details {
  transition: max-height 0.3s ease;
  overflow: hidden;
}

/* Interactive list items with better hover states */
.secrets-list .list-group-item {
  border-radius: 0;
}
.secrets-list .list-group-item:last-child {
  border-bottom: none !important;
}
.secrets-list .list-group-item {
  /* Reset text decoration for links */
}
.secrets-list .list-group-item.text-decoration-none {
  color: inherit !important;
}
.secrets-list .list-group-item.text-decoration-none:hover {
  color: inherit !important;
  text-decoration: none !important;
}

/* Badge styling improvements */
.badge.rounded-pill {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.35em 0.65em;
}
.badge.rounded-pill.d-flex.align-items-center {
  gap: 0.25rem;
}

/* Icon circle improvements */
.rounded-circle {
  aspect-ratio: 1/1;
}
.rounded-circle.bg-primary.bg-opacity-10 {
  border: 1px solid rgba(var(--bs-primary-rgb), 0.1);
}
.rounded-circle.bg-success.bg-opacity-10 {
  border: 1px solid rgba(var(--bs-success-rgb), 0.1);
}
.rounded-circle.bg-warning.bg-opacity-10 {
  border: 1px solid rgba(var(--bs-warning-rgb), 0.1);
}
.rounded-circle.bg-danger.bg-opacity-10 {
  border: 1px solid rgba(var(--bs-danger-rgb), 0.1);
}
.rounded-circle.bg-secondary.bg-opacity-10 {
  border: 1px solid rgba(var(--bs-secondary-rgb), 0.1);
}

/* truncate secret label */
.truncate-width-500 {
  max-width: 500px;
  overflow: hidden;
}

.truncate-width-150 {
  max-width: 150px;
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
}

/* Timeline customization */
.timeline {
  position: relative;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 13px;
  width: 2px;
  background-color: #e9ecef;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.5rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -30px;
  width: 28px;
  height: 28px;
  background-color: #fff;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.timeline-dot-primary {
  border-color: var(--bs-primary);
  color: var(--bs-primary);
}
.timeline-dot-success {
  border-color: var(--bs-success);
  color: var(--bs-success);
}
.timeline-dot-warning {
  border-color: var(--bs-warning);
  color: var(--bs-warning);
}
.timeline-dot-danger {
  border-color: var(--bs-danger);
  color: var(--bs-danger);
}

.timeline-content {
  background-color: #fff;
  border-radius: 0.375rem;
  padding: 1rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.size-36, .size-50 {
  display: inline-block;
}

.size-36 {
  width: 36px;
  height: 36px;
}

.size-50 {
  width: 50px;
  height: 50px;
}

.list-group-item {
  transition: background-color 0.15s ease;
}
.list-group-item:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.02);
  cursor: pointer;
}
