/* SmartFilms Custom Styles */

:root {
  --sf-primary: #e50914;
  --sf-secondary: #141414;
  --sf-dark: #0c0c0c;
  --sf-light: #f5f5f5;
  --sf-accent: #e5b809;
}

/* General Styles */
body {
  font-family: 'Montserrat', sans-serif;
  background-color: #122334 !important; /* Fondo azul oscuro */
  color: var(--sf-light);
  position: relative;
  min-height: 100vh;
}

.page-header h1 {
  font-weight: 700;
  color: #ffffff !important; /* Título en blanco */
}

.card {
  border-radius: 8px;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--sf-primary);
  border-color: var(--sf-primary);
}

.btn-primary:hover, 
.btn-primary:focus {
  background-color: #c70812;
  border-color: #c70812;
}

.text-danger {
  color: var(--sf-primary) !important;
}

.bg-danger {
  background-color: var(--sf-primary) !important;
}

.border-danger {
  border-color: var(--sf-primary) !important;
}

/* Custom Background Elements */
.bg-film-strip {
  position: fixed;
  width: 80px;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 1000' fill='%23222222'%3E%3Crect x='10' y='0' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='60' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='120' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='180' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='240' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='300' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='360' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='420' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='480' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='540' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='600' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='660' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='720' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='780' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='840' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='900' width='80' height='50' rx='5' ry='5'/%3E%3Crect x='10' y='960' width='80' height='50' rx='5' ry='5'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  z-index: -1;
  opacity: 0.1;
}

.bg-film-left {
  left: 0;
}

.bg-film-right {
  right: 0;
}

/* Form Styles */
.form-label {
  font-weight: 500;
}

.form-control, .form-select {
  border: 1px solid #333;
  padding: 10px 15px;
  background-color: rgba(30, 30, 30, 0.8);
  border-radius: 4px;
  color: #fff;
}

.form-control:focus, .form-select:focus {
  border-color: var(--sf-primary);
  box-shadow: 0 0 0 0.25rem rgba(229, 9, 20, 0.25);
  background-color: rgba(40, 40, 40, 0.9);
}

.form-control:disabled, .form-select:disabled {
  background-color: rgba(20, 20, 20, 0.6);
}

.form-switch .form-check-input {
  width: 3em;
  margin-left: -3.5em;
  height: 1.5em;
}

.form-switch .form-check-input:checked {
  background-color: var(--sf-primary);
  border-color: var(--sf-primary);
}

.form-check-label {
  font-weight: 400;
  color: #ddd;
}

/* Navbar and Footer */
.navbar {
  background-color: rgba(10, 10, 10, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
  height: 40px;
}

.nav-link {
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--sf-primary) !important;
}

.navbar-dark .navbar-nav .nav-link.active {
  color: var(--sf-primary);
}

footer {
  background-color: var(--sf-secondary);
  color: #999;
  padding: 2rem 0;
}

/* Card Styles */
.card-header {
  background-color: var(--sf-secondary);
  border-bottom: none;
  font-weight: 600;
}

.card-footer {
  background-color: rgba(20, 20, 20, 0.7);
  border-top: 1px solid #333;
}

/* Document Upload Styles */
.dropzone {
  border: 2px dashed #444;
  border-radius: 8px;
  background-color: rgba(20, 20, 20, 0.4);
  transition: all 0.3s ease;
}

.dropzone:hover, .dropzone.dz-drag-hover {
  border-color: var(--sf-primary);
  background-color: rgba(30, 30, 30, 0.6);
}

.dropzone .dz-message {
  margin: 2em 0;
  color: #aaa;
}

.dropzone .dz-preview {
  margin: 10px;
}

.dropzone .dz-preview .dz-image {
  border-radius: 4px;
}

/* Animations */
.animate-fadeIn {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
  .bg-film-strip {
    width: 40px;
  }
  
  .navbar-brand img {
    height: 32px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .form-switch .form-check-input {
    width: 2.5em;
    height: 1.3em;
  }
}

/* Special Help Texts */
.help-text {
  font-size: 0.85em;
  color: #999;
  margin-top: 0.25rem;
}

.help-text-danger {
  color: var(--sf-primary);
}

/* Form Steps */
.form-step {
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  background-color: rgba(25, 25, 25, 0.6);
  border-left: 4px solid var(--sf-primary);
}

.form-step-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

.form-step-header h3 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
}

/* Form Required */
.required-field::after {
  content: " *";
  color: var(--sf-primary);
}

/* Badge Styles */
.badge {
  font-weight: 500;
  padding: 0.5em 0.8em;
}

.badge.bg-danger {
  background-color: var(--sf-primary) !important;
}

/* Document Preview */
.document-preview {
  border: 1px solid #333;
  border-radius: 4px;
  padding: 10px;
  background: rgba(15, 15, 15, 0.5);
  margin-top: 10px;
}

.document-preview-header {
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
  margin-bottom: 8px;
  font-weight: 500;
}

/* Lista de archivos subidos */
.list-group-item {
  background-color: rgba(20, 20, 20, 0.9) !important;
  color: #ffffff !important;
  border-color: #444;
}

#id-documents-list, #residence-documents-list {
  color: #ffffff !important;
}

#id-documents-files-list, #residence-documents-files-list {
  background-color: rgba(20, 20, 20, 0.9) !important;
  color: #ffffff !important;
  border-radius: 6px;
  padding: 5px;
}

/* Estilos para los textos dentro de las listas */
.list-group h6, 
.list-group span, 
.list-group small,
.list-group p,
.list-group div {
  color: #ffffff !important;
}

.document-preview img {
  max-width: 100%;
  border-radius: 4px;
}

/* File Upload Container */
.upload-container {
  border: 2px dashed #ccc;
  padding: 20px;
  cursor: pointer;
  text-align: center;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.7); /* Fondo casi negro para mayor contraste */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 15px;
  color: #ffffff !important; /* Texto blanco con !important para forzar */
}

/* Asegurarnos que todos los textos dentro de los contenedores sean visibles */
.upload-container h6,
.upload-container small,
.upload-container span,
.upload-container p,
.upload-container label {
  color: #ffffff !important;
}

.upload-container:hover {
  border-color: var(--sf-primary);
  background-color: rgba(229, 9, 20, 0.2);
}

.upload-container.dragover {
  border-color: var(--sf-primary);
  background-color: rgba(229, 9, 20, 0.3);
}

.upload-container input[type="file"] {
  position: absolute;
  opacity: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.document-icon {
  font-size: 2rem;
  color: #ffffff !important;
  margin-bottom: 10px;
  display: block;
}

/* File Upload Section for Mobile */
.document-upload-section {
  border: 2px solid #333;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  background-color: rgba(30, 30, 30, 0.5);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.document-upload-description {
  border-radius: 8px 8px 0 0;
  padding: 12px 15px;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  color: #eee;
  border-bottom: 2px solid var(--sf-primary);
}

.file-select-btn {
  margin-top: 10px;
  width: 100%;
  max-width: 250px;
  transition: all 0.3s ease;
  background-color: #e50914;
  color: white;
  border: none;
  font-weight: 500;
  padding: 8px 15px;
}

@media (max-width: 768px) {
  .document-upload-section {
    padding: 12px;
  }
  
  .document-upload-description {
    padding: 8px 12px;
    font-size: 0.9rem;
  }
  
  .upload-container {
    padding: 15px 10px;
  }
  
  .document-icon {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
  
  .upload-container h6 {
    font-size: 0.9rem;
  }
}