/* EstadoReclamo.css - Modern Design */

/* CSS Variables for consistent theming */
:root {
  --primary-color: #2d3b80;
  --primary-light: #0047ab;
  --primary-dark: #1e2959;
  --accent-color: #4a90e2;
  --success-color: #28a745;
  --success-light: #34ce57;
  --text-primary: #2d3748;
  --danger-color: #ca2f3e;
}

/* Modern container styling */
.modern-container {
  max-width: 95vw;
  min-height: 50vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  margin: 3vh auto;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced page header */
.modern-container h1 {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  font-size: 2.2rem;
}

/* Search Section */
.search-section {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-color) 50%,
    var(--primary-light) 100%
  );
  color: white;
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2rem;
  box-shadow: 0 15px 40px rgba(45, 59, 128, 0.2);
  position: relative;
  overflow: hidden;
}

.search-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="4"/></g></svg>');
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Enhanced search header */
.search-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 2;
}

.search-icon-container {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.search-icon-container i {
  font-size: 1.5rem;
  color: white;
}

.search-text-content h4 {
  color: white;
  font-weight: 700;
  font-size: 1.8rem;
  margin: 0;
}

.search-subtitle {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 400;
}

.search-section h4 {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.search-form {
  margin-top: 2rem;
  background-color: transparent;
}

/* Enhanced form controls */
.input-group-lg .form-control {
  border-radius: 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  background: rgba(255, 255, 255, 0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  color: var(--primary-color);
  position: relative;
  z-index: 2;
}

.input-group-lg .form-control:focus {
  background: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
}

.input-group-text {
  border-radius: 15px 0 0 15px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-right: none;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 2;
}

.btn-search {
  background: linear-gradient(45deg, var(--accent-color), var(--primary-light));
  border: none;
  color: white;
  padding: 0.875rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
  z-index: 2;
}

.btn-search::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-search:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(74, 144, 226, 0.4);
  color: white;
}

.btn-search:hover::before {
  left: 100%;
}

/* Modern Info Cards */
.ticket-info-card,
.status-timeline-card,
.resolution-card {
  background: linear-gradient(
    135deg,
    var(--primary-dark) 0%,
    var(--primary-color) 50%,
    var(--primary-light) 100%
  );
  color: white;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 0;
  margin-bottom: 2rem;
  box-shadow: 0 15px 40px rgba(45, 59, 128, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.ticket-info-card::before,
.status-timeline-card::before,
.resolution-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="50" height="50" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.02"><circle cx="25" cy="25" r="3"/></g></svg>');
  animation: float 20s ease-in-out infinite;
  z-index: 0;
}

.ticket-info-card:hover,
.status-timeline-card:hover,
.resolution-card:hover {
  box-shadow: 0 20px 50px rgba(45, 59, 128, 0.3);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.4);
}

.ticket-info-card .card-header,
.status-timeline-card .card-header,
.resolution-card .card-header {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  font-weight: 700;
  border: none;
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 2;
  border-radius: 20px 20px 0 0;
}

/* Card body and content */
.ticket-info-card .card-body,
.status-timeline-card .card-body,
.resolution-card .card-body {
  padding: 2.5rem;
  position: relative;
  z-index: 2;
}

.info-item {
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.info-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1rem;
  color: white;
  margin: 0;
  padding: 0.25rem 0;
  font-weight: 500;
}

.status-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pendiente {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

.status-enproceso {
  background-color: #cce5ff;
  color: #004085;
  border: 1px solid #74b9ff;
}

.status-resuelto {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #00b894;
}

.status-finalizado {
  background-color: #e2e3e5;
  color: #383d41;
  border: 1px solid #636c72;
}

.file-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
}

.file-item:last-child {
  border-bottom: none;
}

.file-item i {
  color: #6c757d;
  font-size: 1.1rem;
}

/* Timeline styling */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(5px);
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 1.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  z-index: 1;
  transition: all 0.3s ease;
}

.timeline-item.completed .timeline-marker {
  background: var(--success-color);
  box-shadow: 0 0 0 3px var(--success-color), 0 0 15px rgba(40, 167, 69, 0.4);
  transform: scale(1.1);
}

.timeline-item.rejected .timeline-marker {
  background: var(--danger-color);
  box-shadow: 0 0 0 3px var(--danger-color), 0 0 15px rgba(220, 53, 69, 0.4);
  transform: scale(1.1);
}

.timeline-content h6 {
  margin-bottom: 0.5rem;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.timeline-content p {
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

.timeline-content small {
  color: rgba(255, 255, 255, 0.6) !important;
}

.timeline-item.completed .timeline-content h6 {
  color: var(--success-light);
}

.timeline-item.rejected .timeline-content h6 {
  color: var(--danger-color);
}

/* Resolution content styling */
.resolution-content {
  background: rgba(255, 255, 255, 0.1);
  border-left: 4px solid rgba(255, 255, 255, 0.5);
  padding: 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.resolution-text {
  font-size: 1rem;
  line-height: 1.6;
  color: white;
  margin-bottom: 1rem;
  white-space: pre-wrap;
  font-weight: 400;
}

.resolution-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  margin-top: 1rem;
}

.resolution-footer small {
  color: rgba(255, 255, 255, 0.7) !important;
}

.no-resolution {
  display: flex;
  align-items: center;
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.no-resolution:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
}

.no-resolution-icon {
  flex-shrink: 0;
  margin-right: 2rem;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0.8;
}

.no-resolution-content {
  flex: 1;
  text-align: left;
}

.no-resolution-content h6 {
  color: white;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.no-resolution-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.5;
}

.no-resolution-content small {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Ensure text-muted classes work properly in dark cards */
.ticket-info-card .text-muted,
.status-timeline-card .text-muted,
.resolution-card .text-muted {
  color: rgba(255, 255, 255, 0.6) !important;
}

/* Help Section */
.help-section {
  margin-top: 2rem;
}

.help-section .alert-info {
  background: linear-gradient(
    135deg,
    rgba(74, 144, 226, 0.08) 0%,
    rgba(45, 59, 128, 0.05) 100%
  );
  border: 2px solid rgba(74, 144, 226, 0.15);
  border-radius: 16px;
  padding: 2rem;
  color: var(--primary-color);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(74, 144, 226, 0.08);
  transition: all 0.3s ease;
}

.help-section .alert-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%234a90e2" fill-opacity="0.03"><circle cx="20" cy="20" r="3"/></g></svg>');
  animation: float 15s ease-in-out infinite;
  z-index: 0;
}

.help-section .alert-info:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(74, 144, 226, 0.12);
  border-color: rgba(74, 144, 226, 0.25);
}

.help-section h6 {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.help-section p {
  position: relative;
  z-index: 2;
  margin: 0;
  color: var(--text-primary);
}

.help-section .alert-link {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
}

.help-section .alert-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Files list styling */
.files-list {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}

.file-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.file-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.file-item i {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
}

.file-item .btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  transition: all 0.3s ease;
}

.file-item .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
  transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .search-section {
    padding: 1.5rem;
  }

  .ticket-info-card .card-body,
  .status-timeline-card .card-body,
  .resolution-card .card-body {
    padding: 1.5rem;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-marker {
    left: -1.5rem;
  }

  .timeline::before {
    left: 10px;
  }

  .no-resolution {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .no-resolution-icon {
    margin-right: 0;
    margin-bottom: 1rem;
    font-size: 2.5rem;
  }

  .no-resolution-content {
    text-align: center;
  }

  .resolution-content {
    padding: 1rem;
  }
}

/* Animation for fade-in effect */
.fade-in-down {
  animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
