html, body {
  height: 100%;
  margin: 0;
  background: #6c47f5;
}


@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  body {
    background: linear-gradient(to bottom, #6c47f5);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: #fff;
  }
  
  .app-header {
    background: transparent;
    padding: 1rem 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    box-shadow: none;
  }
  
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 1049;
  }
  
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #f8f9fa;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    padding-top: 80px;
    transition: transform 0.3s ease;
    transform: translateX(-100%);
    z-index: 1050;
    font-size: 0.9em;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .sidebar a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #ddd;
  }
  
  .sidebar a:hover {
    background-color: #e2e6ea;
  }
  
  .sidebar .close-sidebar {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.4rem;
    color: #333;
    cursor: pointer;
  }
  
  .sidebar-toggle {
    font-size: 1.7rem;
    cursor: pointer;
  }
  
  .app-content {
    padding: 2rem 1rem;
    text-align: center;
    flex: 1;
  }
  
  .btn-circle {
    width: 85%;
    height: 80px;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
    margin: 1rem auto;
    display: block;
  }
  
  .btn-abrir {
    background-color: #6c47f5;
    color: white;
  }
  
  .btn-primario {
    background-color: #6c47f5;
    color: white;
  }
  
  .btn-cerrar {
    background-color: #f33c58;
    color: white;
  }
  
  .btn-cerrar:hover {
    background-color: #d32f2f;
    transform: scale(1.05);
  }
  
  .btn-circle:hover {
    transform: scale(1.05);
  }
  
  .status-card {
    margin-top: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 16px;
    width: 85%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 0.95rem;
    color: #333;
    margin-left: auto;
    margin-right: auto;
  }
  
  .app-footer {
    background: transparent;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.8rem;
    color: #f1f1f1;
    position: relative;
    bottom: 0;
    width: 100%;
    z-index: 999;
  }
  
  .btn-volver-flotante {
    position: fixed;
    bottom: 4rem;
    left: 1rem;
    background-color: #6c47f5;
    color: white;
    font-size: 1.8rem;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
  }
  
  .btn-volver-flotante:hover {
    background-color: #5938cc;
    text-decoration: none;
    color: white;
  }
  


  #pull-refresh-indicator {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    display: none;
  }
  
  .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  