
/* Base */
body {
    background: radial-gradient(#1a1a1a, #141321, #21021d);
    color: #fff;
    font-family: 'Poppins', sans-serif !important;
    margin: 0;
    padding: 0;
}

/* Scroll suave para anclas */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Compensa navbar fixed */
}

/* Mostrar burger, logout y footer en todas las versiones */
.burger-icon,
.logout-icon,
.mobile-footer {
    display: flex;
}

.burger-menu {
    display: block;
}

/* Ocultar contenido antiguo de navbar en todas las versiones */
.navbar-desktop {
    display: none !important;
}

/* Estilos de navbar unificados */
.navbar .container-fluid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.navbar-subtitle {
    padding-top: 7px;
    font-size: 15px;
}
.d-flex {
    justify-content: center;
}

/* Agregar padding bottom al contenido para el footer en todas las versiones */
.container {
    padding-bottom: 80px !important;
}

.row {
justify-content: center;
    }
    
.beta-txt {
    font-size: 9px;
}

.form-check {
   text-align: left;
    font-size: 0.7rem;
    font-weight: 500;
}

.notify-add-task {
    z-index: 10000;
    position: fixed;
    bottom: 3.4rem;
    left: 50%;
    font-size: 14px;
    text-shadow: -2px 1px 1px black, -2px 1px 3px black;
}

/* Animación para actualización */
.updated {
    animation: fadePulse 0.8s ease;
}
@keyframes fadePulse {
    0% { background-color: #1e1e1e; }
    50% { background-color: #2e2e2e; }
    100% { background-color: #1e1e1e; }
}

/* Card de información */
.card.info-card {
    text-align: center;
    border-radius: 1rem;
    background: #fff;
    color: #222;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    margin-bottom: 24px;
    padding: 20px;
    font-size: 0.8rem;
}

/* Task box */
.task-box {
    margin-top: 30px;
    background: radial-gradient(#00000057, #0f0f0f94, #0f0f0f6b, #00000066);
    border-radius: 15px;
    padding: 20px;
}
.task-box h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #f5f5f5;
    font-weight: 500;
    font-size: 1.3rem;
}

/* Savage Coin icon */
img[src*="img/mucoin.png"] {
    width: 17px;
    height: 17px;
    margin-bottom: 3px;
}

/* Grid de tareas */
.task-grid {
    display: grid;
}

/* Tarjeta de tarea */
.task-card, .list-group-item {
    background: #06040d82;
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #333;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 1rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

.task-card {
        text-align: center;
    }
    
.task-card p, .list-group-item p {
    margin: 4px 0;
    color: #bdbdbd;
    font-size: 14px;
}

/* Acciones de tarea */
.task-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.card.info-card p {
  margin-bottom: 0rem;
}

/* Botones */
.btn {
    margin: 0px 0;
    background: #3c3c3c;
    border: none;
    color: #fff;
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s ease-in-out;
}
.btn:hover {
    opacity: 0.9;
    transform: scale(1.03);
}
.btn-edit { background: #1277fd; }
.btn-delete { background: #535353; }
.btn-on { background: #27ae60; }
.btn-off { background: #3c3c3c; }

/* Botón cuadrado Crear tarea */
.btn-create-task3 {
    border: 0px;
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: #16a085; /* verde */
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}





/* Floating + button for mobile */
.btn-create-task {
        
        border: 0px;
        bottom: 17px;
        position: fixed;
        display: none;
        width: 56px;
        height: 56px;
        background: #16a085;
        border-radius: 8px;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.15);
        transition: transform 0.12s ease, box-shadow 0.12s ease;
        margin: 0 auto;
        z-index: 100;
}

.btn-create-task .plus { color: #fff; font-size: 26px; line-height: 1; font-weight: 700; }




.btn-create-task2 {
    border: 0px;
    display: inline-flex;
    width: 20px;
    height: 20px;
    cursor: auto !important;
    background: #16a085; /* verde */
    border-radius: 3px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-create-task3 .plus { color: #fff; font-size: 20px; line-height: 1; font-weight: 700; }
.btn-create-task2 .plus { color: #fff; font-size: 13px; line-height: 1; font-weight: 700; }

.btn-create-task .plus { color: #fff; font-size: 26px; line-height: 1; font-weight: 700; }
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Modal overlay y card (usar estilo similar a task-card) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.modal-card {
    display: flex;
    background: #000000b8;
    width: 100%;
    max-width: 440px;
    padding: 16px;
    border-radius: 12px;
    justify-content: center;
}

/* Responsive modal for mobile */
@media (max-width: 600px) {
    
    .notify-add-task {
    font-size: 10px;
    bottom: 3.5rem;
}

.mobile-footer {
    padding: 8px 24px 18px 24px !important;
  }

    .modal-card {
        max-width: 98vw;
        min-width: 0;
        padding: 10px 6px;
        font-size: 0.98rem;
    }
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
        justify-content: center;
    }
    
    .py-4 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}



/* Sticky navbar for all devices */
.navbar {
        position: sticky;
        top: 0;
        z-index: 1000;
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Botón de cerrar rojo cuadrado dentro del modal */
.btn-close-task {
    position: absolute;
    right: 18px;
    top: 14px;
    width: 40px;
    height: 40px;
    background: #c0392b;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
}
.btn-close-small {
    background: #c0392b;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
}

/* Botón Abrir enlace */
.btn-link-task {
    background: #3c3c3c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
}
.btn-link-task:hover {
    background: #6c3483;
    color: #fff;
}

/* Botón Seleccionar evidencia */
.btn-select-evidence {
    background: #6a6a6a;
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 500;
}
.btn-select-evidence:hover {
    background: #1c69b1;
    color: #ffffff;
}

/* Botón Subir y cobrar */
.btn-upload-evidence {
    background: #16a085;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 8px;
    font-weight: 500;
}
.btn-upload-evidence:hover {
    background: #117864;
    color: #fff;
}

/* Estados */
.status-active {
    color: #2ecc71;
    font-weight: bold;
}
.status-inactive {
    color: #e74c3c;
    font-weight: bold;
}

/* Navbar */
.navbar {
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.navbar-brand {
    font-size: 1.6rem;
    font-family: "MuseoModerno", sans-serif;
    margin-right: 10px;
    font-weight: 500;
}

.navbar-subtitle a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}
.navbar-text {
    font-size: 1rem;
}

/* Responsive y estilo tipo app */
@media (max-width: 991px) {
    
  .btn-create-task {
        display: none;
    }
    
    .btn-create-task3 {
    display: none;
}
    
    .plataformas-index img {
        width: 35px !important;
        height: 35px !important;
    }
    
    .plataformas-index .gap-3 {
    gap: 0.4rem !important;
}
    
     .navbar .d-flex {
    align-items: center !important;
    width: 100%;
  }
  
    .col-lg-12, .col-md-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .row>* {
        width: 91%;
            justify-content: center;
    }
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .navbar-text {
        font-size: 1rem;
    }
    .btn {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
    .info-card {
        margin-left: 0;
        margin-right: 0;
        font-size: 0.98rem;
        padding: 1rem 0.7rem;
    }
    .task-card, .list-group-item {
        font-size: 0.9rem;
        padding: 1rem 0.5rem;
    }
    .task-actions {
        flex-direction: row;
        gap: 0.5rem;
    }
    .navbar {
        position: fixed;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
    }
    
    .d-flex {
    justify-content: center;
}
   
}



@media (max-width: 600px) {
   
    .navbar-text {
        font-size: 0.95rem;
    }
    .btn {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    .info-card {
        font-size: 0.95rem;
        padding: 1rem 0.5rem;
    }
    .task-card, .list-group-item {
        text-align: center;
        font-size: 0.9rem;
        padding: 0.7rem 0.3rem;
        flex-direction: column;
    }
   
    .mb-4.text-center {
        margin-bottom: 1.5rem !important;
    }
    .task-actions {
        flex-direction: row;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
}

/* Estilos para el modal de edición de perfil */
.profile-pic-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border: 3px dashed #666;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1a1a;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-pic-container:hover {
  border-color: #007bff;
  background: #2a2a2a;
}

.profile-pic-container.has-image {
  border: 3px solid #007bff;
}

.profile-pic-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-pic-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #666;
  text-align: center;
  padding: 20px;
}

.profile-pic-placeholder i {
  font-size: 48px;
  margin-bottom: 10px;
}

.error-message {
  color: #dc3545;
  font-size: 14px;
  margin-top: 10px;
}

/* Modal de recorte de imagen para perfil */
/* Modal de recorte de imagen: oculto por defecto, nunca visible accidentalmente */
.crop-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
}

.crop-modal.active {
    display: flex;
    visibility: visible;
    opacity: 1;
}

.crop-container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 90%;
  max-height: 90%;
  text-align: center;
  overflow-y: auto;
}

.crop-canvas-container {
    position: relative;
    margin: 20px 0;
    display: inline-block;
    touch-action: none; /* Evita el scroll en móviles al arrastrar */
}

#editCropCanvas {
    border: 2px solid #ddd;
    cursor: move;
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .crop-container {
        max-width: 98vw;
        padding: 8px;
    }
    #editCropCanvas {
        width: 100vw;
        max-width: 98vw;
        height: auto;
    }
}

.crop-controls {
  margin: 20px 0;
}

.crop-controls button {
  margin: 0 5px;
  padding: 8px 16px;
}

.zoom-control {
  margin: 10px 0;
}

.zoom-control input[type="range"] {
  width: 200px;
}

/* ============================================
   FOOTER MÓVIL FLOTANTE
   ============================================ */
.mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #1a1a1a;
  border-top: 1px solid #333;
  padding: 8px 12px 12px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}



.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.footer-profile-pic {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
  cursor: pointer;
  transition: transform 0.2s;
}

.footer-profile-pic:hover {
  transform: scale(1.05);
}

.footer-username {
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}

@media (min-width: 992px) {
  .footer-username {
    font-size: 1rem;
  }
}

.footer-btn-create {
  width: 36px;
    height: 36px;
    background: #16a085;
    border: none;
    border-radius: 14%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.footer-btn-create:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.footer-btn-create:active {
  transform: scale(0.95);
}

.footer-btn-create .plus {
  color: #fff;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
}

@media (min-width: 992px) {
  .footer-btn-create {
    width: 43px;
    height: 43px;
  }
  
  .footer-btn-create .plus {
    font-size: 30px;
  }
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  justify-content: flex-end;
}

.footer-coins {
  font-size: 0.95rem;
  font-weight: 600;
}

.footer-coin-icon {
  width: 20px;
  height: 20px;
}

/* ============================================
   MENÚ BURGER
   ============================================ */
.burger-icon {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 5px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
}

.burger-icon span {
  width: 22px;
    height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.logout-icon {
  color: #fff;
  font-size: 18px;
  padding: 8px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s;
}

.logout-icon:hover {
  color: #e74c3c;
}

.burger-menu {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: #1a1a1a;
  z-index: 10000;
  transition: left 0.3s ease;
  box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}

.burger-menu.active {
  left: 0;
}

.burger-menu-header {
  padding: 20px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.burger-menu-header h5 {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
}

.burger-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
}

.burger-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.burger-menu-list li {
  border-bottom: 1px solid #333;
}

.burger-menu-list li a {
  display: block;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}

.burger-menu-list li a:hover {
  background: #2a2a2a;
}

/* Overlay cuando el menú está abierto */
.burger-menu.active::before {
  content: '';
  position: fixed;
  top: 0;
  left: 280px;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: -1;
}