.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}
.post-header {
    display: flex;
    align-items: center;
}
.post-info {
    margin-left: 10px;
}
.timestamp {
    font-size: 0.8em;
    color: #6c757d;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    margin: 10px 0;
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.comment-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.comment-content {
    flex: 1;
}

.action-buttons {
    flex-shrink: 0;
    display: flex;
    gap: 0.5rem;
}

/* Aseguramos que los botones se mantengan alineados correctamente */
.btn-group {
    margin: 0;
}

.card {
    background-color: var(--color-page-background);
    color: var(--color-primary-dark);
}

.comment-text {
    color: var(--color-primary-dark);
}

.text-secondary {
    color: var(--color-footer) !important;
}
.form-control:focus {
    background-color: var(--color-page-background);
    color: var(--color-primary-dark);
    border-color: var(--color-focus-border);
    box-shadow: 0 0 0 0.25rem var(--color-focus-shadow);
  }

  .form-control::placeholder {
    color: var(--color-placeholder);
  }

  .form-control[type="file"]::file-selector-button {
    background-color: var(--color-page-background);
    color: var(--color-primary-dark);
    border-color: var(--color-border);
  }
  
  .form-control[type="file"]:hover::file-selector-button {
    background-color: var(--color-hover-background);
  }
.respuestaunica
{
    border-color: var(--color-border);
    border: 1px solid;
    
    background-color: var(--color-low-background) !important;
}


    /* Estilo para el modal lightbox */
    .modal-lightbox {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        overflow: auto;
        background-color: rgba(0, 0, 0, 0.85);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .modal-lightbox.show {
        display: block;
        opacity: 1;
    }

    /* Contenido del modal */
    .modal-lightbox-content {
        margin: auto;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100%;
        max-width: 90%;
        position: relative;
    }

    /* Botón para cerrar el lightbox */
    .close-lightbox {
        position: absolute;
        top: 15px;
        right: 15px;
        color: white;
        font-size: 30px;
        font-weight: bold;
        transition: 0.3s;
        z-index: 10000;
        cursor: pointer;
        background-color: rgba(0, 0, 0, 0.5);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        line-height: 0;
        padding-bottom: 3px;
        text-align: center;
    }

    .close-lightbox:hover,
    .close-lightbox:focus {
        color: #bbb;
        text-decoration: none;
        cursor: pointer;
    }

    /* Estilo para la imagen en el lightbox */
    #lightboxImage {
        max-width: 90%;
        max-height: 90vh;
        display: block;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
        object-fit: contain;
        transition: opacity 0.3s ease;
    }

    /* Hacer que las imágenes en el timeline sean interactivas */
    .media-image {
        cursor: pointer;
        transition: transform 0.2s;
    }

    .media-image:hover {
        transform: scale(1.02);
    }

/* Estilos para el sistema de votación */
.vote-wrapper {
    display: flex;
    align-items: center;
}

.vote-buttons {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vote-btn {
    background: transparent;
    border: none;
    color: var(--color-primary-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.vote-btn:hover:not([disabled]) {
    background-color: var(--color-hover-background);
}

.vote-btn.upvote.voted {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

.vote-btn.downvote.voted {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.vote-btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.vote-count {
    font-weight: bold;
    min-width: 1.5rem;
    text-align: center;
}

/* Estilo para posts con baja puntuación */
.post-low-rating {
    background-color: var(--color-low-background, #f8f9fa);
    opacity: 0.85;
}

.post-low-rating .card-text {
    font-size: 0.9rem;
}

.post-low-rating .post-info h6 {
    font-size: 0.9rem;
}

/* Dropzone Styles */
.dropzone-container {
    margin-bottom: 1rem;
    position: relative;
}

.dropzone {
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.dropzone:hover {
    border-color: #007bff;
    background: #e7f3ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.dropzone:active {
    transform: scale(0.98);
}

.dropzone.dragover {
    border-color: #28a745;
    background: #e8f5e8;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.2);
}

.dropzone.dragover .dropzone-content {
    transform: scale(1.05);
}

.dropzone-content {
    transition: transform 0.2s ease;
}

.dropzone-icon {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.dropzone:hover .dropzone-icon {
    color: #007bff;
    transform: scale(1.1);
}

.dropzone.dragover .dropzone-icon {
    color: #28a745;
    animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

.dropzone-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.dropzone:hover .dropzone-text {
    color: #007bff;
}

.dropzone.dragover .dropzone-text {
    color: #28a745;
}

.dropzone-subtext {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.dropzone-browse {
    color: #007bff;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 2px 4px;
    border-radius: 3px;
}

.dropzone-browse:hover {
    color: #0056b3;
    background-color: rgba(0, 123, 255, 0.1);
    text-decoration: none;
}

.dropzone-formats {
    color: #868e96;
    font-size: 0.85rem;
}

/* Archivo seleccionado */
.dropzone.has-file {
    border-color: #28a745;
    background: #e8f5e8;
}

.dropzone.has-file .dropzone-icon {
    color: #28a745;
}

.dropzone.has-file .dropzone-text {
    color: #28a745;
}

/* Preview del archivo */
.file-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    display: none;
}

.file-preview.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.file-preview-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-preview-icon {
    font-size: 2rem;
    color: #28a745;
}

.file-preview-info {
    flex: 1;
}

.file-preview-name {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.25rem;
}

.file-preview-size {
    font-size: 0.875rem;
    color: #6c757d;
}

.file-preview-remove {
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.file-preview-remove:hover {
    background: #f8d7da;
}

/* Mejoras visuales adicionales para el dropzone */
.dropzone-container {
    position: relative;
}

/* Animación de carga */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.dropzone.uploading {
    pointer-events: none;
    opacity: 0.7;
}

.dropzone.uploading .dropzone-icon {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Estados de validación */
.dropzone.error {
    border-color: #dc3545;
    background: #f8d7da;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.dropzone.error .dropzone-icon {
    color: #dc3545;
}

.dropzone.error .dropzone-text {
    color: #dc3545;
}

/* Indicador de progreso */
.dropzone-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #007bff;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 0 0 12px 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .dropzone {
        padding: 1.5rem 1rem;
    }
    
    .dropzone-icon {
        font-size: 2.5rem;
    }
    
    .dropzone-text {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .dropzone {
        padding: 1rem;
        margin: 0.5rem 0;
    }
    
    .dropzone-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .dropzone-text {
        font-size: 0.9rem;
    }
    
    .dropzone-subtext {
        font-size: 0.8rem;
    }
    
    .file-preview-content {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Dark mode support (si tienes tema oscuro) */
/*
@media (prefers-color-scheme: dark) {
    .dropzone {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .dropzone:hover {
        background: #1a365d;
        border-color: #3182ce;
    }
    
    .dropzone.dragover {
        background: #1a365d;
        border-color: #38a169;
    }
    
    .file-preview {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }
}
*/
/* Ocultar input de archivo de manera segura */
.file-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
}