/* =====================================================
   BUTTONS - Estilos de botones
   ===================================================== */

.e-btn {
    border-radius: var(--pidt-radius);
    font-family: var(--pidt-font-primary);
    transition: all var(--pidt-transition-fast);
}

.e-btn.e-primary {
    background: var(--pidt-primary);
    color: var(--pidt-text-white);
    border: 1px solid var(--pidt-primary);
}

.e-btn.e-primary:hover {
    background: var(--pidt-primary-dark);
    border-color: var(--pidt-primary-dark);
}

.e-btn.e-outline {
    background: white;
    border: 1px solid var(--pidt-primary-dark);
    color: var(--pidt-primary-dark);
}

.e-btn.e-outline:hover {
    background: var(--pidt-primary-dark);
    color: var(--pidt-text-white);
}

/* --- Btn Primary --- */
.btn-primary {
    background: #4459D7;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #36C1FF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(68, 89, 215, 0.3);
}

/* --- Btn Secondary --- */
.btn-secondary {
    background: white;
    border: 2px solid #36C1FF;
    color: #36C1FF;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #36C1FF;
    color: white;
}

/* --- Btn Icon --- */
.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    background: #f0f0f0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-icon:hover {
    background: #4459D7;
    color: white;
    transform: scale(1.1);
}

.btn-icon.btn-delete:hover {
    background: #E53935;
}

/* --- Btn Save --- */
.btn-save.e-btn {
    background: #00C853 !important;
    color: white !important;
    border: none !important;
    padding: 12px 32px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin-top: 16px !important;
}

.btn-save.e-btn:hover {
    background: #00E676 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3) !important;
}

.btn-save.e-btn .e-btn-icon {
    margin-right: 8px !important;
}

/* --- Action Buttons Container --- */
.action-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
}

/* --- Btn Content (con spinner) --- */
.btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- Spinner --- */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-btn {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin-btn 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spin-btn {
    to { transform: rotate(360deg); }
}

.save-client-btn.e-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed !important;
}

.e-dialog .modal-footer .e-btn {
    min-height: 36px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}
