/* Estilos para la sección de shortlink y QR */

.shortlink-section {
  margin: 30px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.shortlink-section h3 {
  margin-bottom: 20px;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.shortlink-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.shortlink-info {
  flex: 1;
  min-width: 250px;
}

.shortlink-info p {
  margin-bottom: 10px;
  color: #555;
  font-size: 14px;
}

.shortlink-info p strong {
  display: inline-block;
  margin-right: 8px;
  min-width: 80px;
}

.shortlink-url {
  font-family: 'Courier New', monospace;
  background: #fff;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #007bff;
  font-weight: 500;
  font-size: 13px;
  word-break: break-all;
  display: block;
  margin-top: 5px;
}

.qr-container {
  flex: 0 0 auto;
  min-width: 180px;
}

.qr-container p {
  margin-bottom: 10px;
  color: #555;
  font-weight: 500;
  font-size: 14px;
  text-align: left;
}

.qr-container p strong {
  display: inline-block;
  margin-right: 8px;
  min-width: 80px;
}

.qr-code {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
  max-width: 150px;
  height: auto;
}

.qr-placeholder {
  width: 150px;
  height: 150px;
  border: 2px dashed #ddd;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  color: #999;
  font-size: 14px;
  text-align: center;
  margin: 0 auto;
}

.shortlink-section .btn {
  margin-top: 10px;
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 4px;
}

.shortlink-section .small {
  font-size: 12px;
  color: #666;
  margin-top: 8px;
}

/* Estilos para la sección de descarga PDF */
.pdf-download {
  margin-top: 20px;
  padding: 15px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  text-align: center;
}

.pdf-download p {
  margin: 0 0 10px 0;
  color: #555;
  font-size: 14px;
}

.pdf-download p strong {
  display: inline-block;
  margin-right: 8px;
  min-width: 80px;
}

.pdf-download .btn {
  margin: 10px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.pdf-download .btn:hover {
  background: #0056b3;
  color: white;
  text-decoration: none;
}

.pdf-download .small {
  font-size: 12px;
  color: #666;
  margin-top: 10px;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
  .shortlink-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .shortlink-info {
    min-width: auto;
  }
  
  .qr-container {
    order: -1;
  }
  
  .shortlink-info p strong,
  .qr-container p strong {
    display: block;
    margin-bottom: 5px;
  }
  
  .pdf-download {
    padding: 10px;
  }
  
  .pdf-download .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 15px;
    font-size: 14px;
    word-wrap: break-word;
    white-space: normal;
    text-align: center;
  }
  
  .pdf-download p {
    text-align: center;
  }
  
  .pdf-download .small {
    font-size: 11px;
    line-height: 1.3;
  }
}

/* Animación para el botón de generar shortlink */
.btn.shortlink {
    transition: all 0.3s ease;
}

.btn.shortlink:hover {
    background-color: #007bff;
    color: #fff;
}

/* Estilos para el modal de shortlink (si se implementa) */
.shortlink-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.shortlink-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

.shortlink-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.shortlink-modal-close:hover {
    color: #000;
}

/* Estadísticas del shortlink */
.shortlink-stats {
    margin-top: 15px;
    padding: 10px;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 12px;
}

.shortlink-stats span {
    font-weight: bold;
    color: #007bff;
} 