﻿

/* Botón flotante fijo */
.floating-add-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(30, 168, 231, 0.4);
    overflow: hidden;
}

    .floating-add-btn:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 30px rgba(30, 168, 231, 0.6);
    }

    .floating-add-btn .btn-text {
        position: absolute;
        right: 70px;
        background: white;
        color: var(--primary);
        padding: 8px 16px;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
        opacity: 0;
        transform: translateX(10px);
        transition: all 0.3s ease;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        pointer-events: none;
    }

        .floating-add-btn .btn-text::after {
            content: '';
            position: absolute;
            top: 50%;
            right: -8px;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-left: 8px solid white;
            border-top: 6px solid transparent;
            border-bottom: 6px solid transparent;
        }

/* Efectos para desktop */
@media (min-width: 769px) {
    .floating-add-btn:hover .btn-text {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Efectos especiales para móviles */
@media (max-width: 768px) {
    .floating-add-btn {
        animation: mobilePulse 2s infinite;
    }

        .floating-add-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            transition: left 0.5s;
        }

        .floating-add-btn.show-text::before {
            left: 100%;
        }

        .floating-add-btn.show-text {
            width: auto;
            padding: 0 20px;
            border-radius: 30px;
        }

            .floating-add-btn.show-text .btn-icon {
                margin-right: 8px;
            }

            .floating-add-btn.show-text .btn-mobile-text {
                opacity: 1;
                max-width: 200px;
            }

        .floating-add-btn .btn-mobile-text {
            opacity: 0;
            max-width: 0;
            overflow: hidden;
            transition: all 0.3s ease;
            font-size: 14px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .floating-add-btn.executing {
            animation: executeAnimation 0.6s ease;
            transform: scale(0.9);
        }

    @keyframes mobilePulse {
        0% {
            box-shadow: 0 4px 20px rgba(30, 168, 231, 0.4);
        }

        50% {
            box-shadow: 0 6px 30px rgba(30, 168, 231, 0.7);
        }

        100% {
            box-shadow: 0 4px 20px rgba(30, 168, 231, 0.4);
        }
    }

    @keyframes executeAnimation {
        0%, 100% {
            transform: scale(0.9);
        }

        50% {
            transform: scale(1.1);
        }
    }
}



.pozo-card {
    background: white;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

    .pozo-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        border-color: var(--primary);
    }

    .pozo-card .card-body {
        padding: 20px;
    }

.pozo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 15px;
}

.pozo-title {
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    font-size: 16px;
}

.pozo-id {
    font-size: 14px;
    color: #6c757d;
    margin-top: 2px;
}

.status-indicators {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.status-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

    /*.status-icon::after {
        content: attr(data-tooltip);
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        background: #333;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 10px;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 100;
    }*/

    .status-icon:hover::after {
        opacity: 1;
    }

    .status-icon:hover {
        transform: scale(1.1);
    }

.status-direccional {
    background-color: #d4edda;
    color: #155724;
}

    .status-direccional:hover {
        background-color: #155724;
        color: white;
    }

.status-sarta {
    background-color: #fff3cd;
    color: #856404;
}

    .status-sarta:hover {
        background-color: #856404;
        color: white;
    }

.status-bombas {
    background-color: #f8d7da;
    color: #721c24;
}

    .status-bombas:hover {
        background-color: #721c24;
        color: white;
    }

.card-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.pozo-card:hover .card-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-lst-btn {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

    .action-lst-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .action-lst-btn.report:hover {
        background-color: var(--primary);
        color: white;
        border-color: var(--primary);
    }

    .action-lst-btn.delete:hover {
        background-color: #dc3545;
        color: white;
        border-color: #dc3545;
    }

.pozo-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6c757d;
}

.status-summary {
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--primary-light);
    border-radius: 6px;
    font-size: 12px;
    color: var(--primary-dark);
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

    .empty-state i {
        font-size: 64px;
        margin-bottom: 20px;
        opacity: 0.3;
    }

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-spinner {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.spinner-border {
    color: var(--primary);
}

@media (max-width: 768px) {
    .header-section .row {
        gap: 15px;
    }

    .search-container {
        max-width: 100%;
    }

    .pozo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .card-actions {
        position: static;
        opacity: 1;
        transform: none;
        /*margin-top: 15px;*/
        border-top: 1px solid #e9ecef;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-right: 10px;
        justify-content: end;
    }

    .status-indicators {
        /*justify-content: center;*/
    }

    .pozo-info {
        /*justify-content: center;
        text-align: center;*/
    }
}

/* Animación para indicadores de estado activos */
.status-active {
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(30, 168, 231, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(30, 168, 231, 0);
    }
}