/* JCS Motorsport - Login Elegante */
:host,
.sl-theme-dark {
  /* Colores principales JCS */
  --jcs-red: #ef4444;
  --jcs-red-dark: #dc2626;
  --jcs-red-light: #f87171;
  
  /* Input styling */
  --sl-input-border-radius-medium: 8px;
  --sl-input-height-medium: 50px;
  --sl-input-border-color: rgba(255, 255, 255, 0.2);
  --sl-input-border-color-hover: rgba(255, 255, 255, 0.3);
  --sl-input-border-color-focus: var(--jcs-red);
  --sl-input-background-color: rgba(255, 255, 255, 0.1);
  --sl-input-color: white;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Login Page Styling */
.login-page {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), 
              url('/static/img/login_bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo img {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.login-logo h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.login-logo p {
  margin: 0;
  color: #666;
  font-size: 0.95rem;
}

.login-form {
  margin-top: 2rem;
}

/* Login form styling */
.login-form {
  margin-top: 2rem;
}

.login-form sl-input {
  margin-bottom: 1.5rem;
  --sl-input-border-color: rgba(255, 255, 255, 0.3);
  --sl-input-border-color-hover: rgba(255, 255, 255, 0.5);
  --sl-input-border-color-focus: var(--jcs-red);
  --sl-input-border-radius-medium: 12px;
  --sl-input-height-medium: 55px;
  --sl-input-background-color: rgba(255, 255, 255, 0.95);
  --sl-input-color: #333;
  --sl-input-placeholder-color: #999;
  --sl-input-font-size-medium: 1rem;
}

.login-form sl-input::part(base) {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.login-form sl-input::part(base):hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.login-form sl-input[data-has-focus]::part(base) {
  border-color: var(--jcs-red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2), 0 6px 12px rgba(0, 0, 0, 0.15);
}

.login-form sl-input::part(input) {
  color: #333;
  font-weight: 500;
}

.login-form sl-input::part(prefix) {
  color: #666;
}

.login-form sl-input[data-has-focus]::part(prefix) {
  color: var(--jcs-red);
}

/* Fix autocomplete styling */
.login-form sl-input::part(input):-webkit-autofill,
.login-form sl-input::part(input):-webkit-autofill:hover,
.login-form sl-input::part(input):-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.95) inset !important;
  -webkit-text-fill-color: #333 !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Password toggle and clear button styling */
.login-form sl-input::part(password-toggle-button),
.login-form sl-input::part(clear-button) {
  color: #666;
  transition: color 0.2s ease;
}

.login-form sl-input::part(password-toggle-button):hover,
.login-form sl-input::part(clear-button):hover {
  color: var(--jcs-red);
}

.login-form sl-input[data-user-invalid]::part(base) {
  border-color: var(--jcs-red);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.login-button {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, var(--jcs-red) 0%, var(--jcs-red-dark) 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}

.login-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.login-button:active {
  transform: translateY(0);
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--jcs-red-dark);
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.error-close {
  background: none;
  border: none;
  color: var(--jcs-red-dark);
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.error-close:hover {
  background-color: rgba(239, 68, 68, 0.2);
}

/* Circular progress indicator */
.progress-close {
  width: 24px;
  height: 24px;
  position: absolute;
  top: 8px;
  right: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.progress-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 2px solid rgba(239, 68, 68, 0.3);
  position: relative;
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(var(--jcs-red) 0deg, transparent 0deg);
  border-radius: 50%;
  transition: background 0.1s linear;
}

.progress-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: var(--jcs-red-dark);
  z-index: 1;
}

.progress-close:hover .progress-circle {
  border-color: var(--jcs-red);
  background: rgba(239, 68, 68, 0.2);
}

/* Login page improvements */
.login-page {
  min-height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), 
              url('/static/img/login_bg.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden;
}

.login-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
}

/* Cards para dashboards */
sl-card {
  --border-radius: 16px;
  --border-color: var(--sl-color-neutral-700);
  --background-color: var(--sl-color-neutral-800);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

sl-card:hover {
  transform: translateY(-4px);
  --border-color: var(--jcs-red);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.15);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.jcs-icon {
  color: var(--jcs-red);
  font-size: 1.5rem;
}

sl-card [slot="header"] {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--sl-color-neutral-50);
  font-size: 1.1rem;
}

sl-card [slot="header"] sl-icon {
  color: var(--jcs-red);
  margin-right: 0.75rem;
  font-size: 1.5rem;
}

sl-button[variant="primary"] {
  --sl-color-primary-500: var(--jcs-red);
  --sl-color-primary-600: var(--jcs-red-dark);
  --sl-button-border-radius-medium: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

sl-button[variant="primary"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
  .login-page {
    padding: 1rem;
  }
  
  .login-container {
    padding: 2rem 1.5rem;
  }
  
  .login-logo img {
    width: 60px;
    height: 60px;
  }
  
  .login-logo h1 {
    font-size: 1.5rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  .jcs-header .container {
    padding: 1rem;
  }
  
  .jcs-logo h1 {
    font-size: 1.2rem;
  }
  
  .jcs-logo img {
    height: 40px;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}


/* ============================================
   ADMIN DASHBOARD STYLES
   ============================================ */

/* Admin Layout */
.admin-layout {
    display: flex;
    height: 100vh;
    background: var(--sl-color-neutral-900);
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--sl-color-neutral-800);
    border-right: 1px solid var(--sl-color-neutral-700);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

.sidebar.collapsed {
    width: 70px;
}

.sidebar-header {
    height: 70px;
    padding: 0 1rem;
    border-bottom: 1px solid var(--sl-color-neutral-700);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.sidebar-logo-text {
    font-weight: 600;
    color: var(--sl-color-neutral-50);
    font-size: 1.1rem;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-logo-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.sidebar-close {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .sidebar-close {
    opacity: 1;
}

/* Navigation */
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 2rem;
}

.nav-section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--sl-color-neutral-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 1rem;
    margin-bottom: 0.5rem;
    display: block;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--sl-color-neutral-300);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
    position: relative;
}

.nav-item:hover {
    background: var(--sl-color-neutral-700);
    color: var(--sl-color-neutral-50);
}

.nav-item.active {
    background: var(--jcs-red);
    color: white;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: white;
}

.nav-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-item sl-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.nav-text {
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--sl-color-neutral-700);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.user-details {
    display: flex;
    flex-direction: column;
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .user-details {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

.user-name {
    font-weight: 500;
    color: var(--sl-color-neutral-50);
    font-size: 0.9rem;
}

.user-role {
    font-size: 0.75rem;
    color: var(--sl-color-neutral-400);
}

/* Logout Button */
.logout-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: var(--jcs-red-light);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
}

.logout-button:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--jcs-red);
    color: var(--jcs-red);
    transform: translateX(2px);
}

.logout-button sl-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.logout-button:hover sl-icon {
    transform: translateX(3px);
}

.logout-text {
    transition: opacity 0.3s ease;
}

.sidebar.collapsed .logout-button {
    justify-content: center;
    padding: 0.75rem;
}

.sidebar.collapsed .logout-text {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Top Bar */
.top-bar {
    height: 70px;
    background: var(--sl-color-neutral-800);
    border-bottom: 1px solid var(--sl-color-neutral-700);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.page-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-toggle {
    display: none;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sl-color-neutral-50);
    margin: 0;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 0.9rem;
    color: var(--sl-color-neutral-400);
    margin: 0;
    line-height: 1.2;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Welcome Card */
.welcome-card {
    background: linear-gradient(135deg, var(--jcs-red), #dc2626);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.welcome-content h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.welcome-content p {
    margin: 0;
    opacity: 0.9;
}

/* No Tasks State */
.no-tasks-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--sl-color-neutral-800);
    border-radius: 12px;
    border: 1px solid var(--sl-color-neutral-700);
}

.no-tasks-content {
    max-width: 400px;
    margin: 0 auto;
}

.celebration-icon {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1.5rem;
}

.no-tasks-content h3 {
    color: var(--sl-color-neutral-50);
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
}

.no-tasks-content p {
    color: var(--sl-color-neutral-300);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Search Bar */
.search-bar {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: center;
}

.search-bar sl-input {
    flex: 1;
}

.search-bar sl-button {
    flex-shrink: 0;
}

/* Clients Table */
.clients-table-container {
    background: var(--sl-color-neutral-800);
    border-radius: 12px;
    border: 1px solid var(--sl-color-neutral-700);
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--sl-color-neutral-700);
    background: var(--sl-color-neutral-750);
}

.results-count {
    color: var(--sl-color-neutral-300);
    font-size: 0.9rem;
}

.table-actions {
    display: flex;
    gap: 0.5rem;
}

.clients-table {
    overflow-x: auto;
}

.clients-table table {
    width: 100%;
    border-collapse: collapse;
}

.clients-table th {
    background: var(--sl-color-neutral-750);
    color: var(--sl-color-neutral-300);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--sl-color-neutral-700);
}

.clients-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--sl-color-neutral-700);
    color: var(--sl-color-neutral-200);
    transition: all 0.2s ease;
}

.clients-table tr {
    transition: all 0.2s ease;
}

.clients-table tr:hover {
    background: var(--sl-color-neutral-750);
}

/* Estilos para búsqueda */
.clients-table tr[style*="display: none"] {
    opacity: 0;
    transform: translateY(-5px);
}

.client-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.client-avatar {
    flex-shrink: 0;
}

.client-details {
    min-width: 0;
}

.client-name {
    font-weight: 600;
    color: var(--sl-color-neutral-50);
    margin-bottom: 0.25rem;
}

.client-email {
    font-size: 0.85rem;
    color: var(--sl-color-neutral-400);
}

.client-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.client-status.active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.client-status.inactive {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
}

.client-actions {
    display: flex;
    gap: 0.25rem;
}

/* Empty State */
.empty-clients {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--sl-color-neutral-400);
}

.empty-clients .empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.empty-clients h3 {
    color: var(--sl-color-neutral-300);
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
}

.empty-clients p {
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Client Modal */
.client-modal {
    --width: 700px;
}

.client-modal::part(panel) {
    background: #ffffff;
    border-radius: 12px;
}

.client-modal::part(header) {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

.client-modal::part(title) {
    color: #111827;
    font-size: 1.125rem;
}

.client-modal::part(body) {
    background: #ffffff;
    padding: 1.5rem;
    max-height: 70vh;
    overflow-y: auto;
}

.client-modal::part(footer) {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

.client-form {
    margin: 0;
    padding: 0;
}

.form-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section-title {
    margin: 0 0 1rem 0;
    color: var(--jcs-red);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-row {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.form-row:last-child {
    margin-bottom: 0;
}

.form-row-2 {
    grid-template-columns: 1fr 1fr;
}

.form-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.client-modal sl-input::part(base),
.client-modal sl-select::part(combobox),
.client-modal sl-textarea::part(base) {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #111827;
}

.client-modal sl-input::part(base):hover,
.client-modal sl-select::part(combobox):hover,
.client-modal sl-textarea::part(base):hover {
    border-color: #9ca3af;
}

.client-modal sl-input::part(base):focus-within,
.client-modal sl-select::part(combobox):focus-within,
.client-modal sl-textarea::part(base):focus-within {
    border-color: var(--jcs-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.client-modal sl-input::part(input),
.client-modal sl-textarea::part(textarea) {
    color: #111827;
}

.client-modal sl-input::part(input)::placeholder,
.client-modal sl-textarea::part(textarea)::placeholder {
    color: #9ca3af;
}

.client-modal sl-input::part(form-control-label),
.client-modal sl-select::part(form-control-label),
.client-modal sl-textarea::part(form-control-label) {
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.client-modal sl-icon {
    color: #6b7280;
}

.client-modal sl-input:focus-within sl-icon,
.client-modal sl-select:focus-within sl-icon {
    color: var(--jcs-red);
}

.client-modal sl-input[data-invalid]::part(base) {
    border-color: #dc2626;
}

.client-modal sl-input[data-invalid]::part(form-control-help-text) {
    color: #dc2626;
}

.client-modal sl-input::part(input):-webkit-autofill,
.client-modal sl-input::part(input):-webkit-autofill:hover,
.client-modal sl-input::part(input):-webkit-autofill:focus,
.client-modal sl-input::part(input):-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #111827 !important;
    transition: background-color 5000s ease-in-out 0s;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.modal-actions sl-button {
    min-width: 120px;
}

/* Confirm Modal */
.confirm-modal {
    --width: 400px;
}

.confirm-modal::part(panel) {
    background: #ffffff;
}

.confirm-modal::part(header) {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.confirm-modal::part(body) {
    background: #ffffff;
}

.confirm-modal::part(footer) {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.confirm-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 1rem 0;
}

.warning-icon {
    font-size: 2.5rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.confirm-text h3 {
    margin: 0 0 0.5rem 0;
    color: #111827;
}

.confirm-text p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

/* Enhanced Delete Modal */
#confirmDeleteModal {
    --width: 500px;
}

#confirmDeleteModal .confirm-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

#confirmDeleteModal .warning-icon {
    font-size: 3rem;
    color: var(--sl-color-danger-600);
}

#confirmDeleteModal .confirm-text {
    width: 100%;
}

#confirmDeleteModal .confirm-text h3 {
    color: var(--sl-color-danger-600);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

#deleteClientInfo {
    background: var(--sl-color-neutral-50);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: left;
}

#deleteClientInfo p {
    margin: 0.25rem 0;
}

#deleteClientName {
    font-weight: 600;
    color: var(--sl-color-neutral-900);
}

#deleteClientEmail {
    color: var(--sl-color-neutral-600);
    font-size: 0.9rem;
}

/* Notifications Panel */
.notifications-dropdown::part(panel) {
    padding: 0;
    border: 1px solid var(--sl-color-neutral-700);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    background: var(--sl-color-neutral-800);
    border-radius: 8px;
}

.notifications-panel {
    width: 380px;
    max-height: 500px;
    background: var(--sl-color-neutral-800);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notifications-panel::part(base) {
    background: var(--sl-color-neutral-800);
    border: none;
    padding: 0;
}

.notifications-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--sl-color-neutral-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    background: var(--sl-color-neutral-800);
}

.notifications-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--sl-color-neutral-50);
}

.notifications-list {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
    background: var(--sl-color-neutral-800);
}

.empty-notifications {
    padding: 3rem 2rem;
    text-align: center;
    color: var(--sl-color-neutral-400);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--sl-color-neutral-300);
}

.empty-message {
    font-size: 0.85rem;
    line-height: 1.4;
}

.notifications-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--sl-color-neutral-700);
    text-align: center;
    flex-shrink: 0;
    background: var(--sl-color-neutral-800);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
    }
    
    .sidebar:not(.collapsed) {
        transform: translateX(0);
    }
    
    .sidebar.collapsed {
        transform: translateX(-100%);
        width: 280px;
    }
    
    .sidebar-toggle {
        display: block !important;
    }
    
    .welcome-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .clients-table {
        font-size: 0.85rem;
    }
    
    .clients-table th,
    .clients-table td {
        padding: 0.75rem 1rem;
    }
}

/* ===== CUSTOMER DASHBOARD STYLES (MINIMAL) ===== */

/* Customer Layout */
.customer-layout {
    min-height: 100vh;
    background: var(--sl-color-neutral-900);
}

/* Customer Header */
.customer-header {
    background: var(--sl-color-neutral-800);
    border-bottom: 1px solid var(--sl-color-neutral-700);
    padding: 1rem 0;
}

.customer-header-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.customer-avatar-img {
    --size: 2.5rem;
}

.customer-name {
    color: var(--sl-color-neutral-50);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.customer-email {
    color: var(--sl-color-neutral-400);
    font-size: 0.875rem;
    margin: 0;
}

/* Customer Actions - Botón de Cerrar Sesión */
.customer-actions sl-button::part(base) {
    border: 1px solid rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.15);
    color: var(--jcs-red-light);
    border-radius: 8px;
}

.customer-actions sl-button::part(label) {
    color: var(--jcs-red-light);
}

.customer-actions sl-button::part(prefix) {
    color: var(--jcs-red-light);
}

.customer-actions sl-button:hover::part(base) {
    border-color: var(--jcs-red);
    background: rgba(239, 68, 68, 0.25);
}

.customer-actions sl-button:hover::part(label) {
    color: var(--jcs-red);
}

.customer-actions sl-button:hover::part(prefix) {
    color: var(--jcs-red);
}

/* Customer Navigation */
.customer-nav {
    background: var(--sl-color-neutral-750);
    border-bottom: 1px solid var(--sl-color-neutral-700);
    padding: 0.75rem 0;
}

.customer-nav-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Customer Main Content */
.customer-main {
    padding: 2rem 0;
}

.customer-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Main Action (Minimal) */
.main-action {
    text-align: center;
    margin-bottom: 3rem;
}

.main-action sl-button {
    font-size: 1.125rem;
}

/* Requests Section */
.requests-section {
    margin-bottom: 2rem;
}

.section-title {
    color: var(--sl-color-neutral-50);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
}

/* Empty States (Minimal) */
.empty-requests {
    text-align: center;
    padding: 3rem 1rem;
    background: var(--sl-color-neutral-800);
    border-radius: 8px;
    border: 1px solid var(--sl-color-neutral-700);
}

.empty-icon {
    font-size: 3rem;
    color: var(--sl-color-neutral-600);
    margin-bottom: 1rem;
}

.empty-requests h3 {
    color: var(--sl-color-neutral-300);
    font-size: 1.125rem;
    margin: 0 0 0.5rem 0;
}

.empty-requests p {
    color: var(--sl-color-neutral-400);
    margin: 0;
    line-height: 1.5;
}

/* Request Cards (for future use) */
.request-card {
    --border-color: var(--sl-color-neutral-700);
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.request-card:hover {
    --border-color: var(--jcs-red);
}

.request-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.request-status.pending {
    background: var(--sl-color-warning-100);
    color: var(--sl-color-warning-800);
}

.request-status.pending-payment {
    background: var(--sl-color-primary-100);
    color: var(--sl-color-primary-800);
}

.request-status.completed {
    background: var(--sl-color-success-100);
    color: var(--sl-color-success-800);
}

.request-status.with-incident {
    background: var(--sl-color-danger-100);
    color: var(--sl-color-danger-800);
}

/* Responsive Design */
@media (max-width: 768px) {
    .customer-header-content {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .customer-nav-content {
        padding: 0 1rem;
    }
    
    .customer-content {
        padding: 0 1rem;
    }
    
    .customer-nav sl-button-group {
        width: 100%;
    }
    
    .customer-nav sl-button {
        flex: 1;
    }
    
    .main-action sl-button {
        width: 100%;
        max-width: 300px;
    }
}
/* ===== PASSWORD REQUIREMENTS STYLES ===== */

/* Password Requirements - Elegante y discreto */
.password-requirements {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: var(--sl-color-neutral-800);
    border-radius: 8px;
    border: 1px solid var(--sl-color-neutral-700);
}

/* Client form inputs - Mejor contraste para el perfil */
.client-form sl-input::part(base),
.client-form sl-select::part(combobox),
.client-form sl-textarea::part(base) {
    background: #ffffff;
    border: 1px solid var(--sl-color-neutral-300);
    color: #111827;
}

.client-form sl-input::part(base):hover,
.client-form sl-select::part(combobox):hover,
.client-form sl-textarea::part(base):hover {
    border-color: var(--sl-color-neutral-400);
}

.client-form sl-input::part(base):focus-within,
.client-form sl-select::part(combobox):focus-within,
.client-form sl-textarea::part(base):focus-within {
    border-color: var(--jcs-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.client-form sl-input::part(input),
.client-form sl-textarea::part(textarea) {
    color: #111827;
    font-weight: 500;
}

.client-form sl-input::part(input)::placeholder,
.client-form sl-textarea::part(textarea)::placeholder {
    color: #6b7280;
    font-weight: 400;
}

.client-form sl-input::part(form-control-label),
.client-form sl-select::part(form-control-label),
.client-form sl-textarea::part(form-control-label) {
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.client-form sl-input:focus-within sl-icon,
.client-form sl-select:focus-within sl-icon {
    color: var(--jcs-red);
}

.client-form sl-input[data-invalid]::part(base) {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.client-form sl-input[data-invalid]::part(form-control-help-text) {
    color: #dc2626;
    font-weight: 500;
}

.client-form sl-input::part(input):-webkit-autofill,
.client-form sl-input::part(input):-webkit-autofill:hover,
.client-form sl-input::part(input):-webkit-autofill:focus,
.client-form sl-input::part(input):-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #ffffff inset !important;
    -webkit-text-fill-color: #111827 !important;
}

/* Iconos de prefijo en inputs del perfil */
.client-form sl-input sl-icon[slot="prefix"] {
    color: #6b7280;
    transition: color 0.2s ease;
}

.client-form sl-input:focus-within sl-icon[slot="prefix"] {
    color: var(--jcs-red);
}

/* Botones de toggle de contraseña */
.client-form sl-input::part(password-toggle-button) {
    color: #6b7280;
}

.client-form sl-input::part(password-toggle-button):hover {
    color: var(--jcs-red);
}

/* Password Requirements para contexto de perfil (fondo claro) */
.client-form .password-requirements {
    background: var(--sl-color-neutral-50);
    border: 1px solid var(--sl-color-neutral-200);
}

.requirement {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.requirement:last-child {
    margin-bottom: 0;
}

.requirement.met {
    opacity: 1;
    color: #10b981;
}

.requirement.met .req-icon {
    color: #10b981;
}

.req-icon {
    font-size: 0.75rem;
    margin-right: 0.5rem;
    color: var(--sl-color-neutral-500);
    transition: all 0.3s ease;
}

/* Iconos para contexto de perfil (fondo claro) */
.client-form .req-icon {
    color: var(--sl-color-neutral-600);
}

.requirement.met .req-icon {
    transform: scale(1.1);
}

.req-text {
    font-size: 0.8rem;
    color: var(--sl-color-neutral-400);
    transition: color 0.3s ease;
}

/* Texto para contexto de perfil (fondo claro) */
.client-form .req-text {
    color: var(--sl-color-neutral-700);
}

.requirement.met .req-text {
    color: #10b981;
    font-weight: 500;
}

/* Animación sutil cuando se cumple un requisito */
@keyframes checkmark {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1.1); }
}

.requirement.met .req-icon {
    animation: checkmark 0.3s ease;
}

/* ===== FILE UPLOAD STYLES ===== */

.file-upload-area {
    margin-bottom: 1rem;
}

.file-drop-zone {
    border: 2px dashed var(--sl-color-neutral-300);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--sl-color-neutral-25);
}

.file-drop-zone:hover {
    border-color: var(--jcs-red);
    background: rgba(239, 68, 68, 0.02);
}

.file-list {
    margin-top: 1rem;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: var(--sl-color-neutral-50);
    border: 1px solid var(--sl-color-neutral-200);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.file-item:last-child {
    margin-bottom: 0;
}

/* ===== FORM LAYOUT IMPROVEMENTS ===== */

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .form-row-2,
    .form-row-3 {
        grid-template-columns: 1fr;
    }
}

/* ===== REQUEST SECTION STYLES ===== */

.request-section {
    margin-bottom: 2rem;
}

.request-section .section-title {
    color: var(--sl-color-neutral-800);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Tooltips en inputs */
.client-form sl-input sl-tooltip,
.client-form sl-select sl-tooltip {
    margin-left: 0.5rem;
}

/* Mejoras para selects */
.client-form sl-select::part(combobox) {
    background: #ffffff;
    border: 1px solid var(--sl-color-neutral-300);
    color: #111827;
}

.client-form sl-select::part(combobox):hover {
    border-color: var(--sl-color-neutral-400);
}

.client-form sl-select::part(combobox):focus-within {
    border-color: var(--jcs-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.client-form sl-select::part(listbox) {
    background: #ffffff;
    border: 1px solid var(--sl-color-neutral-300);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Mejorar contraste del texto en selects */
.client-form sl-select::part(display-input) {
    color: #111827 !important;
    font-weight: 500;
}

.client-form sl-select::part(placeholder) {
    color: #6b7280 !important;
}

/* Estilos para las opciones del select */
.client-form sl-select sl-option {
    --sl-color-neutral-700: #111827;
    --sl-color-neutral-600: #374151;
    --sl-color-neutral-500: #6b7280;
}

.client-form sl-select sl-option::part(base) {
    color: #111827;
    background: #ffffff;
}

.client-form sl-select sl-option::part(base):hover {
    background: #f3f4f6;
    color: #111827;
}

.client-form sl-select sl-option[aria-selected="true"]::part(base) {
    background: var(--jcs-red);
    color: #ffffff;
}

.client-form sl-select sl-option[aria-selected="true"]:hover::part(base) {
    background: var(--jcs-red-dark);
    color: #ffffff;
}

/* Mejoras para textareas */
.client-form sl-textarea::part(base) {
    background: #ffffff;
    border: 1px solid var(--sl-color-neutral-300);
}

.client-form sl-textarea::part(base):hover {
    border-color: var(--sl-color-neutral-400);
}

.client-form sl-textarea::part(base):focus-within {
    border-color: var(--jcs-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.client-form sl-textarea::part(textarea) {
    color: #111827;
    font-weight: 500;
}

.client-form sl-textarea::part(textarea)::placeholder {
    color: #6b7280;
    font-weight: 400;
}

/* ===== REQUESTS TABLE STYLES ===== */

.requests-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--sl-color-neutral-200);
}

.requests-table {
    width: 100%;
    border-collapse: collapse;
}

.requests-table thead {
    background: var(--sl-color-neutral-50);
    border-bottom: 2px solid var(--sl-color-neutral-200);
}

.requests-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--sl-color-neutral-700);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.requests-table tbody tr {
    border-bottom: 1px solid var(--sl-color-neutral-100);
    transition: background-color 0.2s ease;
}

.requests-table tbody tr:hover {
    background: var(--sl-color-neutral-25);
}

.requests-table tbody tr:last-child {
    border-bottom: none;
}

.requests-table td {
    padding: 1.25rem;
    color: var(--sl-color-neutral-800);
    vertical-align: middle;
}

.requests-table td strong {
    color: var(--sl-color-neutral-950);
    font-weight: 600;
    font-size: 0.9375rem;
}

/* Empty state */
.empty-requests {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    border: 2px dashed var(--sl-color-neutral-300);
}

.empty-requests .empty-icon {
    font-size: 4rem;
    color: var(--sl-color-neutral-400);
    margin-bottom: 1rem;
}

.empty-requests h3 {
    color: var(--sl-color-neutral-700);
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
}

.empty-requests p {
    color: var(--sl-color-neutral-500);
    margin: 0;
    font-size: 1rem;
}

/* Empty filter state */
.empty-filter-state {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    border: 2px dashed var(--sl-color-neutral-300);
    margin-top: 1rem;
}

.empty-filter-state .empty-icon {
    font-size: 3.5rem;
    color: var(--sl-color-neutral-400);
    margin-bottom: 1rem;
}

.empty-filter-state h3 {
    color: var(--sl-color-neutral-700);
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.empty-filter-state p {
    color: var(--sl-color-neutral-500);
    margin: 0;
    font-size: 0.9375rem;
}

/* Responsive table */
@media (max-width: 768px) {
    .requests-table-container {
        overflow-x: auto;
    }
    
    .requests-table {
        min-width: 700px;
    }
    
    .requests-table th,
    .requests-table td {
        padding: 0.75rem;
    }
}

/* ============================================
   REQUEST DETAIL STYLES - COMPACT CHAT DESIGN
   ============================================ */

.compact-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
}

.header-info {
    flex: 1;
}

.compact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
}

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

.detail-row span {
    color: #666;
}

.detail-row strong {
    color: #1a1a1a;
}

/* Chat Container */
.chat-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    height: calc(100vh - 300px);
    min-height: 500px;
    max-height: 700px;
}

.chat-timeline {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Chat Messages */
.chat-message {
    display: flex;
    gap: 0.75rem;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.admin {
    flex-direction: row-reverse;
}

.message-bubble {
    max-width: 70%;
    background: #f5f5f5;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.chat-message.admin .message-bubble {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.message-meta strong {
    font-size: 0.9rem;
    color: #1a1a1a;
}

.message-meta span {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
}

.message-text {
    color: #333;
    line-height: 1.5;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.price-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--jcs-red);
    border-radius: 8px;
    color: var(--jcs-red);
    font-size: 1.1rem;
}

/* File Attachments in Chat */
.file-bubble {
    background: white !important;
    border: 1px solid #e0e0e0 !important;
    padding: 0.75rem !important;
}

.file-attachment {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 8px;
    color: var(--jcs-red);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-details strong {
    display: block;
    font-size: 0.9rem;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666;
}

.file-hash-compact {
    font-family: monospace;
    font-size: 0.7rem;
    color: #999;
    margin-top: 0.25rem;
}

/* Chat Input */
.chat-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

.chat-input sl-input {
    flex: 1;
}

/* Compact Upload Zone */
.compact-upload-zone {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9f9f9;
}

.compact-upload-zone:hover {
    border-color: var(--jcs-red);
    background: rgba(239, 68, 68, 0.02);
}

/* Responsive */
@media (max-width: 768px) {
    .message-bubble {
        max-width: 85%;
    }
    
    .chat-container {
        height: calc(100vh - 250px);
    }
}
/* ============================================
   DELETE MODAL STYLES - COMPACT & ELEGANT
   ============================================ */

/* Delete Modal */
.delete-modal {
    --width: 450px;
}

.delete-modal::part(panel) {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.delete-modal::part(header) {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
}

.delete-modal::part(title) {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
}

.delete-modal::part(body) {
    background: #ffffff;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
}

.delete-modal::part(footer) {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

/* Delete Modal Content */
.delete-modal-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.delete-modal-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.delete-modal-title h3 {
    margin: 0 0 0.125rem 0;
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

.delete-modal-title p {
    margin: 0;
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.2;
}

/* Client Info Card */
.delete-client-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.client-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.client-card .client-avatar {
    flex-shrink: 0;
    --size: 2.5rem;
}

.client-card .client-details {
    flex: 1;
    min-width: 0;
}

/* Estilos específicos para el modal de eliminación */
.delete-modal .delete-client-info .client-name,
#confirmDeleteModal .client-name {
    font-weight: 700 !important;
    color: #000000 !important;
    font-size: 1.125rem !important;
    margin-bottom: 0.375rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.delete-modal .delete-client-info .client-email,
#confirmDeleteModal .client-email {
    color: #1f2937 !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.005em;
}

/* Delete Warning */
.delete-warning {
    background: #fef3f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 0.75rem;
}

.delete-warning p {
    margin: 0;
    color: #991b1b;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Modal Actions */
.delete-modal .modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.delete-modal .modal-actions sl-button {
    min-width: 100px;
}

/* Responsive */
@media (max-width: 480px) {
    .delete-modal {
        --width: 90vw;
    }
    
    .delete-modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
    
    .delete-modal .modal-actions {
        flex-direction: column-reverse;
    }
    
    .delete-modal .modal-actions sl-button {
        width: 100%;
    }
}

/* ============================================
   DELETE SUCCESS OVERLAY
   ============================================ */

.delete-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.delete-success-overlay.show {
    opacity: 1;
}

.delete-success-overlay.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.success-content {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: all 0.3s ease;
    max-width: 400px;
    width: 90%;
}

.delete-success-overlay.show .success-content {
    transform: scale(1);
}

.success-icon-container {
    margin-bottom: 1.5rem;
}

.success-icon {
    font-size: 4rem;
    color: #10b981;
    animation: successPulse 0.6s ease;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-content h3 {
    margin: 0 0 0.5rem 0;
    color: #111827;
    font-size: 1.5rem;
    font-weight: 600;
}

.success-content p {
    margin: 0 0 1.5rem 0;
    color: #6b7280;
    font-size: 1rem;
}

/* Loading dots animation */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    animation: loadingDots 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 480px) {
    .success-content {
        padding: 2rem 1.5rem;
    }
    
    .success-icon {
        font-size: 3rem;
    }
    
    .success-content h3 {
        font-size: 1.25rem;
    }
}
/* ============================================
   PETITIONS INTERFACE - CLEAN & COMPACT
   ============================================ */

/* Toolbar */
.petitions-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--sl-color-neutral-800);
    border-radius: 8px;
    border: 1px solid var(--sl-color-neutral-700);
}

.toolbar-left {
    display: flex;
    gap: 0.75rem;
    flex: 1;
}

.toolbar-left sl-input {
    flex: 1;
    max-width: 300px;
}

.toolbar-left sl-select {
    min-width: 140px;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.results-count {
    color: var(--sl-color-neutral-300);
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Petitions Container - No fixed height, grows naturally */
.petitions-container {
    background: var(--sl-color-neutral-800);
    border-radius: 12px;
    border: 1px solid var(--sl-color-neutral-700);
    overflow: visible;
}

/* Petitions Grid - No scroll, grows naturally */
.petitions-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
}

/* Petition Card - No horizontal overflow */
.petition-card {
    background: var(--sl-color-neutral-750);
    border: 1px solid var(--sl-color-neutral-600);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.petition-card:hover {
    border-color: var(--jcs-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Petition Header - No overflow */
.petition-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 1rem;
    overflow: hidden;
}

.petition-client {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.client-avatar {
    --size: 2rem;
    flex-shrink: 0;
}

.client-info {
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.client-name {
    font-weight: 600;
    color: var(--sl-color-neutral-50);
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-email {
    color: var(--sl-color-neutral-400);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.petition-status {
    flex-shrink: 0;
}

/* Petition Content - No overflow, responsive */
.petition-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    overflow: hidden;
}

.petition-vehicle,
.petition-service,
.petition-price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sl-color-neutral-300);
    font-size: 0.8125rem;
    min-width: 0;
    overflow: hidden;
}

.petition-vehicle {
    flex: 0 0 auto;
    max-width: 200px;
}

.petition-service {
    flex: 1 1 auto;
    min-width: 0;
}

.petition-service span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.petition-price {
    flex: 0 0 auto;
    font-weight: 600;
    color: var(--jcs-red);
}

.petition-vehicle sl-icon,
.petition-service sl-icon,
.petition-price sl-icon {
    color: var(--sl-color-neutral-500);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.petition-price sl-icon {
    color: var(--jcs-red);
}

/* Petition Footer */
.petition-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--sl-color-neutral-600);
}

.petition-date {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--sl-color-neutral-400);
    font-size: 0.75rem;
}

.petition-date sl-icon {
    font-size: 0.75rem;
    color: var(--sl-color-neutral-500);
}

.petition-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.delete-btn {
    --sl-color-neutral-600: #dc2626;
    --sl-color-neutral-700: #b91c1c;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.delete-btn:hover {
    opacity: 1;
}

/* Delete Modal */
.delete-modal {
    --width: 600px;
}

.delete-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.delete-warning {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.warning-icon {
    color: #f59e0b;
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.warning-text h3 {
    margin: 0 0 0.75rem 0;
    color: var(--sl-color-neutral-100);
    font-size: 1.125rem;
}

.warning-text p {
    margin: 0 0 0.5rem 0;
    color: var(--sl-color-neutral-300);
}

.warning-text ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--sl-color-neutral-300);
}

.warning-text li {
    margin-bottom: 0.25rem;
}

.petition-info-delete {
    padding: 1rem;
    background: var(--sl-color-neutral-800);
    border: 1px solid var(--sl-color-neutral-600);
    border-radius: 6px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--sl-color-neutral-200);
    font-size: 0.875rem;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-row strong {
    color: var(--sl-color-neutral-100);
}

.modal-actions-delete {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

/* Empty State */
.empty-petitions {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--sl-color-neutral-400);
}

.empty-petitions .empty-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
    color: var(--sl-color-neutral-500);
}

.empty-petitions h3 {
    color: var(--sl-color-neutral-300);
    font-size: 1.25rem;
    margin: 0 0 0.5rem 0;
}

.empty-petitions p {
    margin: 0;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

/* Petition Modal */
.petition-modal {
    --width: 600px;
}

.petition-modal::part(panel) {
    background: #ffffff;
    border-radius: 12px;
}

.petition-modal::part(header) {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.petition-modal::part(body) {
    background: #ffffff;
    padding: 1.5rem;
}

.petition-modal::part(footer) {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

/* Compact Sidebar Adjustments */
.sidebar-nav .nav-section {
    margin-bottom: 0;
}

.sidebar-nav .nav-section-title {
    display: none;
}

.sidebar-nav .nav-item {
    margin-bottom: 0.25rem;
    border-radius: 6px;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

.sidebar-nav .nav-item:last-child {
    margin-bottom: 0;
}

/* Status Badge Variants */
sl-badge[variant="warning"] {
    --sl-color-warning-600: #d97706;
}

/* Ensure status badges use correct colors */
sl-badge[variant="primary"] {
    --sl-color-primary-500: #3b82f6; /* Azul estándar */
    --sl-color-primary-600: #2563eb; /* Azul oscuro estándar */
    --sl-color-neutral-0: #ffffff; /* Texto blanco para mejor contraste */
}

/* Responsive Design */
@media (max-width: 768px) {
    .petitions-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .toolbar-left {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .toolbar-left sl-input {
        max-width: none;
    }
    
    .petitions-grid {
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .petition-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .petition-status {
        align-self: flex-end;
    }
    
    .petition-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .petition-vehicle,
    .petition-service {
        min-width: auto;
    }
    
    .petition-price {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .petition-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .petition-actions {
        align-self: flex-end;
    }
}
/* ============================================
   PETITION DETAIL - TWO COLUMN LAYOUT WITH CHAT
   ============================================ */

/* Navigation */
.petition-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--sl-color-neutral-800);
    border-radius: 8px;
    border: 1px solid var(--sl-color-neutral-700);
}

.petition-status-badge {
    display: flex;
    align-items: center;
}

/* Two Column Layout */
.petition-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 1.5rem;
    align-items: start;
}

/* Main Column (Left) */
.petition-main {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.files-pricing-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Chat Column - Simple & Clean */
.petition-chat {
    min-width: 300px;
    position: sticky;
    top: 1rem;
}

.chat-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    height: calc(100vh - 200px); /* Usa casi toda la altura de la pantalla */
    min-height: 600px; /* Altura mínima para pantallas pequeñas */
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.chat-header sl-icon {
    color: var(--jcs-red);
    font-size: 1rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.message {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #ffffff;
    max-width: 75%;
}

.customer-message {
    background: #f0f9ff;
    border-color: #bfdbfe;
    align-self: flex-start; /* Alineado a la izquierda */
}

.admin-message {
    background: #dcfce7;
    border-color: #bbf7d0;
    align-self: flex-end; /* Alineado a la derecha */
}

.message-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-message .message-header {
    flex-direction: row-reverse; /* Avatar a la derecha en mensajes admin */
}

.message-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.admin-message .message-info {
    text-align: right; /* Texto alineado a la derecha en mensajes admin */
}

.message-info strong {
    color: #111827;
    font-size: 0.8125rem;
    font-weight: 600;
}

.message-info small {
    color: #6b7280;
    font-size: 0.6875rem;
}

.message-text {
    color: #374151;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.admin-message .message-text {
    text-align: right; /* Texto del mensaje alineado a la derecha */
}

.no-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex: 1;
    color: #9ca3af;
    font-size: 0.8125rem;
}

.no-messages sl-icon {
    font-size: 1.5rem;
    opacity: 0.5;
}

.chat-input {
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.chat-input sl-input {
    --sl-input-height-small: 36px;
    --sl-input-font-size-small: 0.8125rem;
}

.chat-input sl-button {
    --sl-input-height-small: 28px;
    width: 28px;
    height: 28px;
    padding: 0;
}

/* Detail Cards */
.detail-card {
    background: var(--sl-color-neutral-800);
    border: 1px solid var(--sl-color-neutral-700);
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--sl-color-neutral-750);
    border-bottom: 1px solid var(--sl-color-neutral-700);
}

.card-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-header sl-icon {
    color: var(--jcs-red);
    font-size: 1.125rem;
}

.card-header h3 {
    margin: 0;
    color: var(--sl-color-neutral-50);
    font-size: 0.9375rem;
    font-weight: 600;
}

.card-content {
    padding: 1rem;
    color: var(--sl-color-neutral-100);
}

/* Client Info Compact */
.client-info-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Client Compact Navigation */
.client-compact-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.client-avatar-nav {
    --size: 1.75rem;
    flex-shrink: 0;
}

.client-details-nav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.client-name-nav {
    font-weight: 600;
    color: var(--sl-color-neutral-50);
    font-size: 0.8125rem;
    line-height: 1;
}

.client-email-nav {
    color: var(--sl-color-neutral-400);
    font-size: 0.6875rem;
    line-height: 1;
}

.client-avatar-compact {
    --size: 2.5rem;
    flex-shrink: 0;
}

.client-details-compact {
    flex: 1;
    min-width: 0;
}

.client-name-compact {
    font-weight: 600;
    color: var(--sl-color-neutral-50);
    font-size: 0.9375rem;
    margin-bottom: 0.375rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-contact {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--sl-color-neutral-400);
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.client-contact:last-child {
    margin-bottom: 0;
}

.client-contact sl-icon {
    font-size: 0.75rem;
    color: var(--sl-color-neutral-500);
    flex-shrink: 0;
}

.client-contact span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Client Mini Card - Versión compacta */
.client-mini-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--sl-color-neutral-800);
    border: 1px solid var(--sl-color-neutral-700);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.client-avatar-mini {
    --size: 2rem;
    flex-shrink: 0;
}

.client-details-mini {
    flex: 1;
    min-width: 0;
}

.client-name-mini {
    font-weight: 600;
    color: var(--sl-color-neutral-50);
    font-size: 0.875rem;
    margin-bottom: 0.125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-email-mini {
    color: var(--sl-color-neutral-400);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Vehicle Info Compact */
.vehicle-info-compact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--sl-color-neutral-700);
}

.vehicle-title-compact {
    font-weight: 600;
    color: var(--sl-color-neutral-50);
    font-size: 1rem;
}

.vehicle-year {
    background: var(--jcs-red);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Vehicle Specs Grid */
.vehicle-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--sl-color-neutral-750);
    border-radius: 4px;
    border: 1px solid var(--sl-color-neutral-600);
}

.spec-item sl-icon {
    color: var(--jcs-red);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.spec-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    flex: 1;
}

.spec-label {
    color: var(--sl-color-neutral-500);
    font-size: 0.6875rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.025em;
}

.spec-value {
    color: var(--sl-color-neutral-200);
    font-size: 0.8125rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Vehicle Files Integration */
.vehicle-files {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sl-color-neutral-700);
}

.files-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--sl-color-neutral-300);
    font-size: 0.8125rem;
    font-weight: 600;
}

.files-header sl-icon {
    color: var(--jcs-red);
    font-size: 0.875rem;
}

.files-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.file-item-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--sl-color-neutral-750);
    border: 1px solid var(--sl-color-neutral-600);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.file-item-mini:hover {
    background: var(--sl-color-neutral-700);
    border-color: var(--jcs-red);
}

.file-item-mini sl-icon {
    color: var(--sl-color-neutral-400);
    font-size: 0.875rem;
    flex-shrink: 0;
}

.file-info-mini {
    flex: 1;
    min-width: 0;
}

.file-name-mini {
    color: var(--sl-color-neutral-200);
    font-size: 0.75rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.125rem;
}

.file-size-mini {
    color: var(--sl-color-neutral-500);
    font-size: 0.6875rem;
}

.file-item-mini sl-icon-button {
    --sl-color-neutral-600: var(--jcs-red);
    flex-shrink: 0;
}

/* Vehicle Card Expanded */
.vehicle-card-expanded {
    grid-column: 1 / -1;
}

.vehicle-info-expanded {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sl-color-neutral-700);
}

.section-header sl-icon {
    color: var(--jcs-red);
    font-size: 1rem;
}

.section-header h4 {
    margin: 0;
    color: var(--sl-color-neutral-200);
    font-size: 0.9375rem;
    font-weight: 600;
}

/* Modification Section */
.modification-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sl-color-neutral-700);
}

/* Modification Files Rows (changed from columns to rows) */
.modification-files-rows {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sl-color-neutral-700);
}

/* Files Table Design */
.files-table {
    background: var(--sl-color-neutral-800);
    border: 1px solid var(--sl-color-neutral-600);
    border-radius: 8px;
    overflow: hidden;
}

/* Section Header with Button */
.vehicle-files .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header-left h4 {
    margin: 0;
    color: var(--sl-color-neutral-100);
    font-size: 1.125rem;
    font-weight: 600;
}

.section-header-left sl-icon {
    color: var(--sl-color-neutral-400);
    font-size: 1.25rem;
}

.section-header-right {
    display: flex;
    align-items: center;
}

.files-table-header {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto auto minmax(200px, max-content) auto;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--sl-color-neutral-750);
    border-bottom: 1px solid var(--sl-color-neutral-600);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--sl-color-neutral-300);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.file-table-row {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto auto minmax(200px, max-content) auto;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--sl-color-neutral-700);
    transition: background-color 0.2s ease;
    align-items: center;
    position: relative;
}

/* File Groups */
.file-group {
    border-bottom: 1px solid var(--sl-color-neutral-700);
}

.file-group:last-child {
    border-bottom: none;
}

.file-group-header {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) auto auto minmax(200px, max-content) auto;
    gap: 1rem;
    padding: 0.875rem 1rem;
    transition: background-color 0.2s ease;
    align-items: center;
    position: relative;
    cursor: pointer;
    border-bottom: 1px solid var(--sl-color-neutral-700);
}

.file-group-header:hover {
    background: rgba(255, 255, 255, 0.02);
}

.file-group-header .group-title {
    font-weight: 600;
    color: var(--sl-color-neutral-100);
    font-size: 0.875rem;
}

.file-group-header .group-date {
    color: var(--sl-color-neutral-400);
    font-size: 0.75rem;
    margin-left: 0.5rem;
    font-weight: normal;
}

.file-group-header .group-indicator {
    color: var(--sl-color-neutral-400);
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--sl-color-neutral-700);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    display: inline-block;
}

.file-group-content {
    display: none;
    background: rgba(0, 0, 0, 0.1);
}

.file-group.expanded .file-group-content {
    display: block;
}

.file-group.expanded .group-toggle {
    transform: rotate(180deg);
}

.group-toggle {
    transition: transform 0.2s ease;
}

.file-table-row.grouped-file {
    padding-left: 2rem;
    border-bottom: 1px solid var(--sl-color-neutral-750);
    background: rgba(0, 0, 0, 0.1);
}

.file-table-row.grouped-file:last-child {
    border-bottom: none;
}

/* Diferenciación sutil entre archivos de cliente y admin */
.file-table-row.customer-file,
.file-group-header.customer-file {
    border-left: 3px solid #3b82f6; /* Borde azul para archivos del cliente */
    background: rgba(59, 130, 246, 0.02); /* Fondo azul muy sutil */
}

.file-table-row.admin-file,
.file-group-header.admin-file {
    border-left: 3px solid #10b981; /* Borde verde para archivos del admin */
    background: rgba(16, 185, 129, 0.02); /* Fondo verde muy sutil */
}

.file-table-row.customer-file:hover,
.file-group-header.customer-file:hover {
    background: rgba(59, 130, 246, 0.05);
}

.file-table-row.admin-file:hover,
.file-group-header.admin-file:hover {
    background: rgba(16, 185, 129, 0.05);
}

.file-table-row.grouped-file.customer-file {
    background: rgba(59, 130, 246, 0.03);
}

.file-table-row.grouped-file.admin-file {
    background: rgba(16, 185, 129, 0.03);
}

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



.file-col-name {
    display: flex;
    align-items: center;
    min-width: 0;
}

.file-col-name .file-name {
    color: var(--sl-color-neutral-100);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.file-col-size,
.file-col-date {
    color: var(--sl-color-neutral-300);
    font-size: 0.8125rem;
}

/* Discrete Payment Indicators */
.file-col-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-text {
    color: var(--sl-color-neutral-300);
    font-size: 0.8125rem;
}

.price-indicator {
    padding: 0.125rem 0.375rem;
    border-radius: 8px;
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: help;
    transition: all 0.2s ease;
}

.price-indicator.paid {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.price-indicator.pending {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.price-indicator.neutral {
    background: rgba(156, 163, 175, 0.2);
    color: #9ca3af;
    border: 1px solid rgba(156, 163, 175, 0.3);
}

.price-indicator:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.free-indicator {
    color: var(--sl-color-success-500);
    font-size: 0.6875rem;
    font-weight: 500;
    opacity: 0.7;
}

.file-col-hash .hash-code {
    background: var(--sl-color-neutral-900);
    color: var(--sl-color-neutral-200);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.6875rem;
    border: 1px solid var(--sl-color-neutral-600);
    letter-spacing: 0.025em;
    white-space: nowrap;
    display: inline-block;
}

.file-col-hash .no-hash {
    color: var(--sl-color-neutral-500);
    font-size: 0.8125rem;
    font-style: italic;
}

.file-col-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: flex-end;
}

.file-col-actions sl-icon-button {
    --sl-color-neutral-600: var(--sl-color-neutral-500);
    --sl-color-neutral-700: var(--sl-color-neutral-400);
}



.no-files-table {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--sl-color-neutral-500);
    font-size: 0.875rem;
    background: var(--sl-color-neutral-800);
    border: 1px solid var(--sl-color-neutral-600);
    border-radius: 8px;
}

.no-files-table sl-icon {
    font-size: 1.5rem;
    color: var(--sl-color-neutral-600);
}

.modification-text {
    color: var(--sl-color-neutral-200);
    line-height: 1.5;
    font-size: 0.9375rem;
    padding: 0.75rem;
    background: var(--sl-color-neutral-750);
    border-radius: 6px;
}

/* Files Grid Enhanced */
.files-grid-enhanced {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.file-item-enhanced {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--sl-color-neutral-750);
    border: 1px solid var(--sl-color-neutral-600);
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.file-item-enhanced:hover {
    background: var(--sl-color-neutral-700);
    border-color: var(--jcs-red);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.file-icon-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    background: var(--sl-color-neutral-800);
    border: 1px solid var(--sl-color-neutral-600);
    flex-shrink: 0;
}

.file-icon {
    font-size: 1.5rem;
    margin-top: 0.75rem;
}

.file-icon.ecu-file {
    color: var(--jcs-red);
}

.file-icon.doc-file {
    color: #3b82f6;
}

.file-icon.img-file {
    color: #10b981;
}

.file-icon.generic-file {
    color: var(--sl-color-neutral-400);
}

.file-content-enhanced {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-header-enhanced {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.file-name-enhanced {
    color: var(--sl-color-neutral-100);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    word-break: break-all;
    flex: 1;
}

.file-actions {
    display: flex;
    gap: 0.25rem;
    flex-shrink: 0;
}

.file-actions sl-icon-button {
    --sl-color-neutral-600: transparent;
}

.verify-btn {
    --sl-color-primary-600: #10b981;
}

.download-btn {
    --sl-color-primary-600: var(--jcs-red);
}

.file-meta-enhanced {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.file-size-enhanced,
.file-date-enhanced {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--sl-color-neutral-400);
    font-size: 0.8125rem;
}

.file-size-enhanced sl-icon,
.file-date-enhanced sl-icon {
    font-size: 0.875rem;
    color: var(--sl-color-neutral-500);
}

.file-integrity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--sl-color-neutral-800);
    border: 1px solid var(--sl-color-neutral-600);
    border-radius: 6px;
    gap: 1rem;
}

.integrity-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sl-color-neutral-300);
    font-size: 0.8125rem;
    font-weight: 600;
}

.integrity-label sl-icon {
    color: var(--jcs-red);
    font-size: 0.875rem;
}

.integrity-hash {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.integrity-hash code {
    background: var(--sl-color-neutral-900);
    color: var(--sl-color-neutral-200);
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.75rem;
    border: 1px solid var(--sl-color-neutral-700);
    letter-spacing: 0.025em;
}

.integrity-hash sl-icon-button {
    --sl-color-neutral-600: var(--sl-color-neutral-500);
}

/* No Files Enhanced */
.no-files-enhanced {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 2rem;
    background: var(--sl-color-neutral-750);
    border: 2px dashed var(--sl-color-neutral-600);
    border-radius: 8px;
    text-align: left;
}

.no-files-icon {
    font-size: 2.5rem;
    color: var(--sl-color-neutral-500);
    flex-shrink: 0;
}

.no-files-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.no-files-title {
    color: var(--sl-color-neutral-300);
    font-size: 1rem;
    font-weight: 600;
}

.no-files-subtitle {
    color: var(--sl-color-neutral-500);
    font-size: 0.875rem;
}

/* Response Management Horizontal */
.response-management-horizontal {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.response-files-section {
    min-height: 200px;
}

.pricing-status-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pricing-section {
    padding: 1rem;
    background: var(--sl-color-neutral-800);
    border: 1px solid var(--sl-color-neutral-600);
    border-radius: 6px;
}

.price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.price-header span {
    color: var(--sl-color-neutral-100);
    font-weight: 600;
    font-size: 0.875rem;
}

.status-section {
    padding: 1rem;
    background: var(--sl-color-neutral-800);
    border: 1px solid var(--sl-color-neutral-600);
    border-radius: 6px;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.status-header span {
    color: var(--sl-color-neutral-100);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Upload Modal Horizontal */
.upload-modal-horizontal {
    --width: 90vw;
    --max-width: 1000px;
}

.upload-form-horizontal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: 400px;
}

.upload-files-section,
.upload-config-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--sl-color-neutral-600);
}

.section-title sl-icon {
    color: var(--jcs-red);
    font-size: 1rem;
}

.section-title h4 {
    margin: 0;
    color: var(--sl-color-neutral-100);
    font-size: 1rem;
    font-weight: 600;
}

.file-upload-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.file-drop-zone {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--sl-color-neutral-500);
    border-radius: 8px;
    background: var(--sl-color-neutral-800);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
}

.file-drop-zone:hover {
    border-color: var(--jcs-red);
    background: var(--sl-color-neutral-750);
}

.file-drop-zone p {
    margin: 0;
    color: var(--sl-color-neutral-200);
    font-weight: 600;
    text-align: center;
}

.file-drop-zone small {
    color: var(--sl-color-neutral-400);
    font-size: 0.8125rem;
    margin-top: 0.5rem;
}

.config-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.config-form sl-input,
.config-form sl-select,
.config-form sl-textarea {
    --sl-input-background-color: var(--sl-color-neutral-800);
    --sl-input-border-color: var(--sl-color-neutral-600);
    --sl-input-color: var(--sl-color-neutral-100);
    --sl-input-label-color: var(--sl-color-neutral-200);
    --sl-input-help-text-color: var(--sl-color-neutral-400);
}

.modal-actions-horizontal {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--sl-color-neutral-600);
}

.selected-files {
    max-height: 150px;
    overflow-y: auto;
    padding: 0.5rem;
    background: var(--sl-color-neutral-750);
    border: 1px solid var(--sl-color-neutral-600);
    border-radius: 6px;
}

.selected-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--sl-color-neutral-800);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.selected-file-item:last-child {
    margin-bottom: 0;
}

.selected-file-item span {
    color: var(--sl-color-neutral-200);
    font-size: 0.875rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Files */
.files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-item-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--sl-color-neutral-750);
    border-radius: 4px;
}

.file-item-compact sl-icon {
    color: var(--jcs-red);
    font-size: 1rem;
    flex-shrink: 0;
}

.file-info-compact {
    flex: 1;
    min-width: 0;
}

.file-name-compact {
    font-size: 0.8125rem;
    color: var(--sl-color-neutral-200);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size-compact {
    font-size: 0.75rem;
    color: var(--sl-color-neutral-500);
}

.no-files {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--sl-color-neutral-500);
    font-size: 0.875rem;
}

.no-files sl-icon {
    font-size: 1.5rem;
    opacity: 0.5;
}

/* Client Response Section */
.client-response-section {
    margin-top: 1.5rem;
}

.client-response-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--sl-color-neutral-700);
    margin-bottom: 1rem;
}

.client-response-section .section-header h4 {
    margin: 0;
    color: var(--sl-color-neutral-100);
    font-size: 1rem;
    font-weight: 600;
}

.response-status-table {
    background: var(--sl-color-neutral-800);
    border: 1px solid var(--sl-color-neutral-600);
    border-radius: 8px;
    overflow: hidden;
}

.status-row {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-info {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.status-label {
    color: var(--sl-color-neutral-400);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    min-width: 60px;
}

.status-value {
    color: var(--sl-color-neutral-100);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-description {
    color: var(--sl-color-neutral-300);
    font-size: 0.8125rem;
    line-height: 1.4;
}

.status-pending .status-value {
    color: #3b82f6; /* Azul - En Proceso */
}

.status-payment .status-value {
    color: #f59e0b; /* Amarillo - Pendiente de Pago */
}

.status-completed .status-value {
    color: #10b981; /* Verde - Completada */
}

.status-incident .status-value {
    color: #ef4444; /* Rojo - Con Incidencia */
}

/* Response Modal */
.response-modal {
    --width: 600px;
}

.response-modal::part(panel) {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.response-modal::part(header) {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 1.25rem 1.5rem;
}

.response-modal::part(title) {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.response-modal::part(body) {
    padding: 1.5rem;
    background: #ffffff;
}

.response-modal::part(footer) {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

.response-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-section h4 {
    margin: 0;
    color: #111827;
    font-size: 0.9375rem;
    font-weight: 600;
}

.form-section small {
    color: #6b7280;
    font-size: 0.8125rem;
    margin-top: -0.25rem;
}

.file-drop-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.file-drop-area:hover {
    border-color: var(--jcs-red);
    background: #fef2f2;
}

.drop-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.drop-content sl-icon {
    font-size: 2rem;
    color: #9ca3af;
}

.drop-content p {
    margin: 0;
    color: #374151;
    font-weight: 600;
}

.drop-content small {
    color: #6b7280;
    font-size: 0.8125rem;
}

.selected-files-list {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.75rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Form inputs in modal */
.response-modal sl-input,
.response-modal sl-textarea {
    --sl-input-background-color: #ffffff;
    --sl-input-border-color: #d1d5db;
    --sl-input-border-color-hover: #9ca3af;
    --sl-input-border-color-focus: var(--jcs-red);
    --sl-input-color: #111827;
    --sl-input-label-color: #374151;
    --sl-input-help-text-color: #6b7280;
    --sl-input-placeholder-color: #9ca3af;
}

/* Upload Modal */
.upload-modal {
    --width: 500px;
}

.upload-modal::part(panel) {
    background: #ffffff;
    border-radius: 12px;
}

.upload-form {
    padding: 1rem 0;
}

.file-drop-zone {
    border: 2px dashed var(--sl-color-neutral-300);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--sl-color-neutral-25);
}

.file-drop-zone:hover {
    border-color: var(--jcs-red);
    background: rgba(239, 68, 68, 0.02);
}

.selected-files {
    margin-top: 1rem;
}

.selected-file-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: var(--sl-color-neutral-50);
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.selected-file-item sl-icon {
    color: var(--jcs-red);
}

/* Price Modal */
.price-modal {
    --width: 400px;
}

.price-modal::part(panel) {
    background: #ffffff;
    border-radius: 12px;
}

.price-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .petition-layout {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 768px) {
    .petition-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-row,
    .files-pricing-row {
        grid-template-columns: 1fr;
    }
    
    .chat-card {
        height: 400px;
        min-height: 400px;
        position: static;
    }
    
    .petition-chat {
        position: static;
    }
    
    .petition-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .client-compact-nav {
        justify-content: center;
    }
    
    .client-info-compact {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .file-meta {
        flex-direction: column;
        gap: 0.25rem;
        align-items: flex-start;
    }
    
    .modification-files-rows {
        gap: 1rem;
    }
    
    .files-table-header {
        display: none; /* Hide header on mobile */
    }
    
    .file-table-row,
    .file-group-header {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
        border-left: none !important;
        border-bottom: 1px solid var(--sl-color-neutral-700);
        margin-bottom: 0.5rem;
        border-radius: 8px;
    }
    
    .file-table-row:last-child,
    .file-group:last-child .file-group-header {
        margin-bottom: 0;
    }
    
    .file-group-content {
        margin-top: 0.5rem;
    }
    
    .file-table-row.grouped-file {
        margin-left: 1rem;
        padding: 0.75rem;
        background: rgba(0, 0, 0, 0.2) !important;
    }
    
    .file-table-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1rem;
        background: var(--sl-color-neutral-750);
        border-radius: 6px;
        margin-bottom: 0.5rem;
        border: 1px solid var(--sl-color-neutral-600);
    }
    
    .file-table-row:last-child {
        margin-bottom: 0;
    }
    
    .file-col-name {
        margin-bottom: 0.5rem;
    }
    
    .file-col-size::before {
        content: "Tamaño: ";
        font-weight: 600;
        color: var(--sl-color-neutral-400);
    }
    
    .file-col-date::before {
        content: "Fecha: ";
        font-weight: 600;
        color: var(--sl-color-neutral-400);
    }
    
    .file-col-hash::before {
        content: "MD5: ";
        font-weight: 600;
        color: var(--sl-color-neutral-400);
    }
    
    .file-col-actions {
        justify-content: flex-start;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--sl-color-neutral-600);
    }
    
    .client-response-section .section-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .status-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .response-modal {
        --width: 90vw;
    }
    
    .file-col-name {
        margin-bottom: 0.5rem;
    }
    
    .file-col-size::before {
        content: "Tamaño: ";
        font-weight: 600;
        color: var(--sl-color-neutral-400);
    }
    
    .file-col-date::before {
        content: "Fecha: ";
        font-weight: 600;
        color: var(--sl-color-neutral-400);
    }
    
    .file-col-hash::before {
        content: "MD5: ";
        font-weight: 600;
        color: var(--sl-color-neutral-400);
    }
    
    .client-response-section .section-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .status-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .response-modal {
        --width: 90vw;
    }
    
    .response-management-horizontal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .upload-form-horizontal {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .file-item-enhanced {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .file-icon-wrapper {
        align-self: center;
    }
    
    .file-header-enhanced {
        flex-direction: column;
        gap: 0.5rem;
        align-items: stretch;
    }
    
    .file-actions {
        justify-content: center;
    }
    
    .file-meta-enhanced {
        justify-content: center;
        gap: 1rem;
    }
    
    .file-integrity {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .integrity-hash {
        justify-content: center;
    }
    
    .no-files-enhanced {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .vehicle-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .vehicle-specs {
        grid-template-columns: 1fr;
    }
    
    .spec-item {
        padding: 0.75rem;
    }
    
    .spec-content {
        gap: 0.25rem;
    }
}

/* ===== NOTIFICATION STYLES ===== */

/* Notification Items */
.notification-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--sl-color-neutral-700);
    cursor: pointer;
    transition: background-color 0.2s ease;
    position: relative;
}

.notification-item:hover {
    background: var(--sl-color-neutral-750);
}

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

.notification-item.pending {
    border-left: 3px solid #f59e0b;
}

.notification-item.incident {
    border-left: 3px solid #ef4444;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.notification-title {
    font-weight: 600;
    color: var(--sl-color-neutral-50);
    font-size: 0.875rem;
    line-height: 1.3;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--sl-color-neutral-400);
    flex-shrink: 0;
}

.notification-message {
    font-size: 0.8rem;
    color: var(--sl-color-neutral-300);
    line-height: 1.4;
}

.notification-priority {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.notification-priority.urgent {
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.notification-priority.high {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.5);
}

.notification-priority.normal {
    background: #3b82f6;
}

/* Notification Bell Animation */
.notification-btn {
    position: relative;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    transform: scale(1.1);
}

/* Campana roja cuando hay notificaciones */
.notification-btn.has-notifications {
    animation: bellShake 2s infinite;
    color: #ef4444 !important;
}

.notification-btn.has-notifications::part(base) {
    color: #ef4444 !important;
}

/* Forzar color rojo en el ícono */
.notification-btn.has-notifications sl-icon {
    color: #ef4444 !important;
}

.notification-btn sl-badge {
    animation: pulse 2s infinite;
}

@keyframes bellShake {
    0%, 50%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-10deg);
    }
    20%, 40% {
        transform: rotate(10deg);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Notification Badge Styles */
#notificationBadge {
    --sl-color-danger-600: #ef4444;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
}

/* Responsive Notifications */
@media (max-width: 768px) {
    .notifications-panel {
        width: 320px;
        max-height: 400px;
    }
    
    .notification-item {
        padding: 0.75rem 1rem;
    }
    
    .notification-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .notification-time {
        align-self: flex-end;
    }
}
/* ===== COMPACT FILE LIST STYLES ===== */

/* Archivos compactos */
.files-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.file-compact:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.file-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.file-name {
    font-weight: 700;
    color: #111827;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.file-hash {
    font-size: 0.8rem;
    color: #111827;
    font-weight: 600;
}

.file-hash code {
    background: #f8fafc;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.75rem;
    color: #1f2937;
    border: 1px solid #d1d5db;
    font-weight: 500;
}

.file-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.file-actions sl-icon-button {
    --sl-color-neutral-600: #374151;
    --sl-color-neutral-700: #1f2937;
    background: #f9fafb;
    border: 2px solid #d1d5db;
    transition: all 0.2s ease;
}

.file-actions sl-icon-button:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.copy-btn {
    --sl-color-neutral-600: #059669 !important;
    --sl-color-neutral-700: #047857 !important;
}

.copy-btn:hover {
    background: #ecfdf5;
    border-color: #059669;
}

/* Estado sin archivos compacto */
.no-files-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    color: #6b7280;
    font-size: 0.9rem;
    text-align: center;
    justify-content: center;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
}

.no-files-compact sl-icon {
    font-size: 1.5rem;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .file-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.75rem;
    }
    
    .file-info {
        width: 100%;
    }
    
    .file-actions {
        align-self: flex-end;
    }
    
    .file-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
}
/* ===== RESPONSE FILES SECTION ===== */

.response-section {
    margin-bottom: 2rem;
}

.response-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.response-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-bottom: 2px solid #e5e7eb;
}

.response-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.response-title h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.response-title sl-icon {
    font-size: 1.5rem;
    color: #059669;
}

.response-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.response-content {
    padding: 1.5rem;
}

.response-files-list {
    min-height: 200px;
}

.empty-response-files {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    color: #6b7280;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
}

.empty-response-files sl-icon {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.empty-text h4 {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
}

.empty-text p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.response-file-item {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.response-file-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Estilos para grupos de archivos */
.response-group-item {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.response-group-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.group-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.group-info sl-icon {
    font-size: 1.5rem;
    color: #059669;
}

.group-details .group-title {
    font-weight: 700;
    color: #111827;
    font-size: 0.95rem;
}

.group-details .group-size {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.125rem;
}

.group-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #059669;
    margin-right: 1rem;
}

.group-comment {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.group-comment sl-icon {
    font-size: 1rem;
    color: #6b7280;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.group-comment span {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.5;
}

.group-files details {
    margin-top: 0.5rem;
}

.group-files summary {
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    background: #f3f4f6;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.group-files summary:hover {
    background: #e5e7eb;
}

.group-files ul {
    margin: 0.75rem 0 0 0;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    max-height: 150px;
    overflow-y: auto;
}

.group-files li {
    font-size: 0.8rem;
    color: #374151;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.group-files li:last-child {
    margin-bottom: 0;
}

.response-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.summary-info {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.total-files, .total-price {
    font-size: 0.9rem;
    color: #374151;
}

.total-files strong, .total-price strong {
    color: #111827;
    font-size: 1.1rem;
}

.summary-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Responsive */
@media (max-width: 768px) {
    .response-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .response-actions {
        justify-content: space-between;
    }
    
    .file-item-content {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .response-summary {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .summary-info {
        justify-content: space-around;
    }
    
    .summary-actions {
        justify-content: space-between;
    }
}

/* ============================================
   MODAL SIMPLIFICADO DE RESPUESTA
   ============================================ */

/* Modal simplificado */
.simple-response-modal {
    --width: 600px;
}

.simple-response-modal::part(panel) {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.simple-response-modal::part(header) {
    background: #ffffff;
    border-bottom: 2px solid #f3f4f6;
    padding: 1.5rem;
}

.simple-response-modal::part(title) {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
}

.simple-response-modal::part(body) {
    background: #ffffff;
    padding: 2rem;
}

.simple-response-modal::part(footer) {
    background: #f9fafb;
    border-top: 2px solid #f3f4f6;
    padding: 1.5rem;
}

/* Formulario simplificado */
.simple-response-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.simple-response-form h4 {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sección de archivos */
.upload-section {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 1.5rem;
    background: #f9fafb;
    transition: all 0.3s ease;
}

.upload-section:hover {
    border-color: #9ca3af;
    background: #f3f4f6;
}

.simple-drop-zone {
    text-align: center;
    padding: 2rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.simple-drop-zone:hover {
    background: rgba(239, 68, 68, 0.05);
}

.simple-drop-zone sl-icon {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.simple-drop-zone p {
    margin: 0 0 0.5rem 0;
    color: #374151;
    font-size: 1.1rem;
}

.simple-drop-zone small {
    color: #6b7280;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.drop-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.drop-hint sl-icon {
    font-size: 1rem;
}

.drop-hint span {
    font-weight: 500;
}

/* Archivos seleccionados mejorados */
.selected-files {
    margin-top: 1rem;
    padding: 0;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
}

.files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.files-header h4 {
    margin: 0;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
}

.files-header sl-button {
    --sl-color-neutral-600: #dc2626;
}

.files-list {
    max-height: 200px;
    overflow-y: auto;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.2s ease;
}

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

.file-item:hover {
    background: #f9fafb;
}

.file-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 8px;
    border: 1px solid #d1d5db;
}

.file-icon sl-icon {
    font-size: 1.5rem;
    color: #6b7280;
}

.file-details {
    flex: 1;
    min-width: 0;
}

.file-name {
    font-weight: 500;
    color: #111827;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.file-size {
    color: #6b7280;
    font-size: 0.85rem;
}

.file-actions {
    flex-shrink: 0;
}

.file-actions sl-icon-button {
    --sl-color-neutral-600: #dc2626;
}

.file-actions sl-icon-button:hover {
    --sl-color-neutral-600: #b91c1c;
}

/* Sección de precio */
.price-section {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    background: #ffffff;
}

.price-section sl-input {
    --sl-input-height-medium: 60px;
    --sl-input-font-size-medium: 1.2rem;
    --sl-input-border-color: #d1d5db;
    --sl-input-border-color-hover: #9ca3af;
    --sl-input-border-color-focus: var(--jcs-red);
    --sl-input-border-radius-medium: 8px;
}

.price-section sl-input::part(base) {
    border: 2px solid #d1d5db;
    background: #ffffff;
    font-weight: 600;
}

.price-section sl-input::part(base):hover {
    border-color: #9ca3af;
}

.price-section sl-input::part(base):focus-within {
    border-color: var(--jcs-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.price-section sl-input::part(input) {
    color: #111827;
    font-weight: 600;
    text-align: center;
}

.price-section sl-input::part(prefix),
.price-section sl-input::part(suffix) {
    color: var(--jcs-red);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Sección de comentarios */
.comments-section {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    background: #ffffff;
}

.comments-section sl-textarea {
    --sl-input-border-color: #d1d5db;
    --sl-input-border-color-hover: #9ca3af;
    --sl-input-border-color-focus: var(--jcs-red);
    --sl-input-border-radius-medium: 8px;
}

.comments-section sl-textarea::part(base) {
    border: 2px solid #d1d5db;
    background: #ffffff;
}

.comments-section sl-textarea::part(base):hover {
    border-color: #9ca3af;
}

.comments-section sl-textarea::part(base):focus-within {
    border-color: var(--jcs-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.comments-section sl-textarea::part(textarea) {
    color: #374151;
}

.comments-section sl-textarea::part(textarea)::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Acciones del modal */
.simple-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.simple-modal-actions sl-button {
    min-width: 120px;
    height: 45px;
    font-weight: 600;
}

.simple-modal-actions sl-button[variant="primary"] {
    background: linear-gradient(135deg, var(--jcs-red) 0%, var(--jcs-red-dark) 100%);
}

.simple-modal-actions sl-button[variant="primary"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
}

/* ============================================
   SECCIÓN DE RESPUESTA SIMPLIFICADA
   ============================================ */

.simple-response-section {
    margin-top: 2rem;
}

.response-status {
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
}

.status-pending {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-color: #f59e0b;
    color: #92400e;
}

.status-payment {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
    color: #1e40af;
}

.status-completed {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
    color: #065f46;
}

.response-status sl-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.response-status h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.response-status p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
    .simple-response-modal {
        --width: 95vw;
    }
    
    .simple-response-form {
        gap: 1.5rem;
    }
    
    .simple-drop-zone {
        padding: 1.5rem;
    }
    
    .simple-drop-zone sl-icon {
        font-size: 2.5rem;
    }
    
    .simple-modal-actions {
        flex-direction: column;
    }
    
    .simple-modal-actions sl-button {
        width: 100%;
    }
}
/* Selected files styling for response modal */
.response-modal .files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.response-modal .files-header h4 {
    color: #111827;
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.response-modal .files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.response-modal .file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.response-modal .file-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.response-modal .file-icon {
    color: var(--jcs-red);
    font-size: 1rem;
    flex-shrink: 0;
}

.response-modal .file-details {
    flex: 1;
    min-width: 0;
}

.response-modal .file-name {
    color: #111827;
    font-size: 0.875rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.25rem;
}

.response-modal .file-size {
    color: #6b7280;
    font-size: 0.75rem;
}

.response-modal .file-actions sl-icon-button {
    --sl-color-neutral-600: #6b7280;
    --sl-color-neutral-700: #374151;
}
/* Euro symbol visibility fix */
.price-input .euro-symbol {
    color: #6b7280 !important;
    font-weight: 600;
    font-size: 0.875rem;
}
/* File legend - subtle indicators */
.file-legend {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
    font-size: 0.6875rem;
    font-weight: normal;
    text-transform: none;
    letter-spacing: normal;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-weight: 500;
}

.legend-item::before {
    content: '';
    width: 8px;
    height: 2px;
    border-radius: 1px;
}

.customer-legend {
    color: #1e40af;
    background: rgba(59, 130, 246, 0.1);
}

.customer-legend::before {
    background: #3b82f6;
}

.admin-legend {
    color: #047857;
    background: rgba(16, 185, 129, 0.1);
}

.admin-legend::before {
    background: #10b981;
}


/* ============================================
   PETITION DETAIL - TIMELINE REDESIGN
   ============================================ */

/* Header de la petición */
.petition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

.petition-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.petition-header-info h2 {
    margin: 0;
    font-size: 1.25rem;
    color: #111827;
}

.petition-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.petition-meta .separator {
    color: #d1d5db;
}

.petition-header-right {
    display: flex;
    align-items: center;
}

/* Detalles técnicos colapsables */
.vehicle-details-collapse {
    margin-bottom: 1.5rem;
}

.vehicle-details-collapse::part(base) {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.vehicle-details-collapse::part(header) {
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: #111827;
}

.vehicle-details-collapse::part(content) {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.vehicle-details-collapse [slot="summary"] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.vehicle-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.vehicle-specs-grid .spec-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
}

.vehicle-specs-grid .spec-item sl-icon {
    color: #6b7280;
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.vehicle-specs-grid .spec-item > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vehicle-specs-grid .spec-label {
    font-size: 0.75rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.vehicle-specs-grid .spec-value {
    font-size: 0.875rem;
    color: #111827;
    font-weight: 500;
}

.vehicle-specs-grid .spec-item-full {
    grid-column: 1 / -1;
}

/* Timeline Container */
.timeline-container {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.timeline-header h3 {
    margin: 0;
    font-size: 1.125rem;
    color: #111827;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e5e7eb;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    z-index: 1;
    overflow: hidden;
}

.timeline-marker sl-icon {
    font-size: 0.875rem;
}

.timeline-marker .marker-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-marker {
    border-color: #3b82f6;
    background: #eff6ff;
}

.customer-marker sl-icon {
    color: #3b82f6;
}

.admin-marker {
    border-color: #ef4444;
    background: #fef2f2;
}

.admin-marker sl-icon {
    color: #ef4444;
}

.payment-marker {
    border-color: #10b981;
    background: #f0fdf4;
}

.payment-marker sl-icon {
    color: #10b981;
}

.pending-marker {
    border-color: #f59e0b;
    background: #fffbeb;
}

.pending-marker sl-icon {
    color: #f59e0b;
}

.timeline-content {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
}

.timeline-header-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.timeline-title {
    font-size: 0.875rem;
    color: #111827;
}

.timeline-title strong {
    font-weight: 600;
}

.timeline-date {
    font-size: 0.75rem;
    color: #6b7280;
    white-space: nowrap;
}

.timeline-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.timeline-message {
    font-size: 0.875rem;
    color: #374151;
    line-height: 1.6;
}

.timeline-message p {
    margin: 0 0 0.75rem 0;
}

.timeline-message p:last-child {
    margin-bottom: 0;
}

.timeline-message ul {
    line-height: 1.6;
}

.timeline-message ul li {
    margin-bottom: 0.25rem;
}

.timeline-price {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    color: #dc2626;
    font-size: 0.875rem;
}

.timeline-price sl-icon {
    font-size: 1rem;
}

.timeline-files-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.file-item-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #ffffff;
}

.file-separator {
    height: 1px;
    background: #f3f4f6;
    margin: 0;
}

.file-item-compact .file-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    flex-shrink: 0;
}

.file-item-compact .file-icon sl-icon {
    font-size: 1.25rem;
    color: #6b7280;
}

.file-info-compact {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    pointer-events: none;
}

.file-name-compact {
    font-size: 0.875rem;
    color: #111827;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-md5-compact {
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.7rem;
    color: #6b7280;
    cursor: pointer;
    user-select: all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    display: inline-block;
    max-width: fit-content;
    pointer-events: auto;
}

.file-md5-compact::selection {
    background: transparent;
    color: inherit;
}

.file-md5-compact::-moz-selection {
    background: transparent;
    color: inherit;
}

.file-md5-compact:hover {
    color: #3b82f6;
}

.file-md5-compact:active,
.file-md5-compact:focus {
    outline: none;
    box-shadow: none;
}

.file-size-compact {
    font-size: 0.65rem;
    color: #9ca3af;
}

.price-item-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
}

.price-item-compact.price-paid {
    background: #ffffff;
}

.price-item-compact.price-pending {
    background: #ffffff;
}

.price-item-compact .price-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 6px;
    flex-shrink: 0;
    border: 1px solid #e5e7eb;
}

.price-item-compact.price-paid .price-icon {
    background: #ffffff;
}

.price-item-compact.price-paid .price-icon sl-icon {
    font-size: 1rem;
    color: #16a34a;
}

.price-item-compact.price-pending .price-icon {
    background: #ffffff;
}

.price-item-compact.price-pending .price-icon sl-icon {
    font-size: 1rem;
    color: #ca8a04;
}

.price-info-compact {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.price-text-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-label-compact {
    font-size: 0.75rem;
    font-weight: 500;
}

.price-item-compact.price-paid .price-label-compact {
    color: #166534;
}

.price-item-compact.price-pending .price-label-compact {
    color: #854d0e;
}

.price-amount-compact {
    font-size: 0.875rem;
    font-weight: 700;
}

.price-item-compact.price-paid .price-amount-compact {
    color: #16a34a;
}

.price-item-compact.price-pending .price-amount-compact {
    color: #ca8a04;
}

.timeline-payment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: #111827;
}

/* Área de respuesta rápida */
.quick-response-area {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-response-input {
    width: 100%;
}

.quick-response-input sl-textarea {
    width: 100%;
}

.quick-response-input sl-textarea::part(base) {
    border-radius: 8px;
    border-color: #e5e7eb;
    background: #ffffff;
}

.quick-response-input sl-textarea::part(textarea) {
    color: #111827;
}

.quick-response-input sl-textarea::part(base):focus-within {
    border-color: var(--jcs-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.quick-response-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .quick-response-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .quick-response-actions sl-button {
        width: 100%;
    }
}

/* Modal de adjuntos - Estilo claro y limpio */
.attachment-modal::part(panel) {
    max-width: 600px;
}

.attachment-modal::part(header) {
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
}

.attachment-modal::part(body) {
    background: #ffffff;
    padding: 1.5rem;
}

.attachment-modal::part(footer) {
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    padding: 1rem 1.5rem;
}

.response-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-section label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.form-section small {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
}

.file-drop-zone {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-drop-zone:hover {
    border-color: var(--jcs-red);
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.file-drop-zone sl-icon {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 0.75rem;
}

.file-drop-zone:hover sl-icon {
    color: var(--jcs-red);
}

.file-drop-zone p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.selected-files-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.selected-file-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.selected-file-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.selected-file-item sl-icon:first-child {
    color: var(--jcs-red);
    font-size: 1.125rem;
}

.selected-file-item span {
    flex: 1;
    font-size: 0.875rem;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.selected-file-item sl-icon-button {
    color: #9ca3af;
}

.selected-file-item sl-icon-button:hover {
    color: #ef4444;
}

/* Responsive */
@media (max-width: 768px) {
    .petition-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .vehicle-specs-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline::before {
        left: 0.75rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .timeline-marker sl-icon {
        font-size: 0.75rem;
    }
    
    .timeline-payment {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Timeline button overrides - light styling */
.timeline-content sl-button::part(base) {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.timeline-content sl-button:hover::part(base) {
    background: #f9fafb;
    border-color: #d1d5db;
}

.timeline-content sl-button::part(label) {
    color: #374151;
}

.timeline-content sl-button::part(prefix),
.timeline-content sl-button::part(suffix) {
    color: #6b7280;
}

/* File item buttons - light styling */
.file-item-compact sl-button::part(base) {
    background: transparent;
    border: none;
    color: #6b7280;
}

.file-item-compact sl-button:hover::part(base) {
    background: #f3f4f6;
    color: #374151;
}

.file-item-compact sl-button::part(prefix),
.file-item-compact sl-button::part(suffix) {
    color: inherit;
}

/* Price item buttons - light styling */
.price-item-compact sl-button::part(base) {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.price-item-compact sl-button:hover::part(base) {
    background: #f9fafb;
    border-color: #d1d5db;
}

.price-item-compact sl-button::part(label) {
    color: #374151;
}

.price-item-compact sl-button::part(prefix),
.price-item-compact sl-button::part(suffix) {
    color: #6b7280;
}

/* Timeline files (archivos del cliente) - mismo estilo que files-box */
.timeline-files {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.timeline-files .file-item {
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    padding: 0.75rem;
}

.timeline-files .file-item:last-child {
    border-bottom: none;
}

.timeline-files .file-item:hover {
    background: #ffffff;
}

.timeline-files .file-icon {
    background: transparent;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
}

.timeline-files .file-icon sl-icon {
    font-size: 1.25rem;
    color: #6b7280;
}

/* Modal de datos fiscales - compacto */
.billing-info-modal {
    --width: 350px;
}

.billing-info-modal::part(panel) {
    background: #ffffff;
    border-radius: 8px;
}

.billing-info-modal::part(header) {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
}

.billing-info-modal::part(title) {
    color: #111827;
    font-size: 0.875rem;
    font-weight: 600;
}

.billing-info-modal::part(body) {
    background: #ffffff;
    padding: 1rem;
    font-size: 0.875rem;
}

.billing-info-modal::part(footer) {
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
}

/* Archivos bloqueados (requieren pago) */
.file-item-compact.file-locked {
    opacity: 0.6;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
}

.file-item-compact.file-locked .file-icon sl-icon {
    color: #f59e0b;
}

.file-item-compact.file-locked .file-name-compact {
    color: #92400e;
}

.file-item-compact.file-locked sl-button[disabled]::part(base) {
    background: transparent;
    color: #d97706;
    opacity: 1;
}

/* Input de precio en modal de adjuntos */
.response-form sl-input::part(base) {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.response-form sl-input::part(input) {
    color: #111827;
    font-weight: 500;
}

.response-form sl-input::part(prefix) {
    color: var(--jcs-red);
    font-weight: 600;
    font-size: 1rem;
}

.response-form sl-input:hover::part(base) {
    border-color: #d1d5db;
}

.response-form sl-input:focus-within::part(base) {
    border-color: var(--jcs-red);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Botones del modal */
.attachment-modal sl-button[variant="primary"]::part(base) {
    background: var(--jcs-red);
    border-color: var(--jcs-red);
}

.attachment-modal sl-button[variant="primary"]:hover::part(base) {
    background: var(--jcs-red-dark);
    border-color: var(--jcs-red-dark);
}

.attachment-modal sl-button[variant="default"]::part(base) {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.attachment-modal sl-button[variant="default"]:hover::part(base) {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Modal de pago con Stripe */
.payment-modal::part(panel) {
    max-width: 500px;
}

.payment-modal::part(header) {
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    padding: 1.5rem;
}

.payment-modal::part(body) {
    background: #ffffff;
    padding: 1.5rem;
}

.payment-modal::part(footer) {
    background: #f9fafb;
    border-top: 1px solid #f3f4f6;
    padding: 1rem 1.5rem;
}

.payment-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.payment-summary {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

.payment-amount {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.payment-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.payment-value {
    font-size: 2rem;
    color: #111827;
    font-weight: 700;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#payment-element {
    padding: 0;
    background: transparent;
    border: none;
}

.payment-message {
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    min-height: 1.5rem;
    font-weight: 500;
}

.payment-message-error {
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.payment-message-success {
    color: #059669;
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.payment-message-info {
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

/* Estilos para Stripe Elements - Más claros */
.StripeElement {
    padding: 0;
    border: none;
    background: transparent;
}

.StripeElement--focus {
    outline: none;
}

.StripeElement--invalid {
    /* Stripe maneja los errores internamente */
}

/* Mejorar contraste de los inputs de Stripe */
#payment-element iframe {
    border-radius: 8px;
}

/* Country selector styles */
#countryList {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f3f4f6;
}

#countryList::-webkit-scrollbar {
  width: 8px;
}

#countryList::-webkit-scrollbar-track {
  background: #f3f4f6;
  border-radius: 4px;
}

#countryList::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#countryList::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.country-option {
  padding: 0.625rem 0.875rem;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f3f4f6;
  color: #1f2937;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
}

.country-option:last-child {
  border-bottom: none;
}

.country-option:hover {
  background: #eff6ff !important;
  color: #1e40af !important;
}

.country-option:active {
  background: #dbeafe !important;
  color: #1e3a8a !important;
}

/* Country display (read-only view) */
#countryDisplay {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

#countryDisplay:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

#countryDisplay:hover sl-icon {
  color: #1f2937 !important;
}

#selectedCountryDisplay {
  color: #111827;
  font-weight: 600;
  font-size: 0.9375rem;
}

/* ============================================
   ATTACHMENT MODAL STYLES (Customer)
   ============================================ */

.attachment-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.attachment-drop-zone:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.attachment-drop-zone.drag-over {
    border-color: var(--jcs-red);
    background: #fef2f2;
}

.selected-files-list {
    margin-top: 1rem;
}

.file-item-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 0.5rem;
}

.file-item-compact:first-child {
    margin-top: 0;
}

/* ============================================
   TERMS AND CONDITIONS MODAL
   ============================================ */

.terms-modal::part(panel) {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.terms-modal::part(body) {
    padding: 0;
}

.terms-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.terms-header {
    text-align: center;
    padding: 2rem 2rem 0 2rem;
}

.terms-body {
    padding: 0 2rem 2rem 2rem;
}

.terms-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.terms-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
}

.terms-link:hover {
    background: #f3f4f6;
    border-color: var(--jcs-red);
    color: var(--jcs-red);
    transform: translateX(4px);
}

.terms-link sl-icon:first-child {
    color: var(--jcs-red);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.terms-link span {
    flex: 1;
    font-weight: 500;
}

.terms-checkbox {
    margin-top: 1.5rem;
    padding: 1rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
}

.terms-checkbox sl-checkbox {
    --sl-input-font-size-medium: 0.9375rem;
}

.terms-checkbox sl-checkbox::part(base) {
    align-items: flex-start;
}

.terms-checkbox sl-checkbox::part(control) {
    border: 2px solid #94a3b8;
    border-radius: 4px;
    background: white;
}

.terms-checkbox sl-checkbox::part(control--checked) {
    background: var(--jcs-red);
    border-color: var(--jcs-red);
}

.terms-checkbox sl-checkbox::part(label) {
    color: #1e40af;
    font-weight: 500;
    line-height: 1.5;
    padding-left: 0.5rem;
}
