/* Estilos estándar para botones de acción (editar y eliminar) */

.btn-accion {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    text-decoration: none;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Added box-shadow */
    color: white; /* Ensure text/icon color is white for visibility on gradients */
}

.btn-accion:hover {
    transform: scale(1.1);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Updated box-shadow on hover */
}

.btn-accion:focus {
    outline: none;
}

.btn-accion i {
    font-size: 16px;
}

/* Specific styles for btn-edit and btn-delete based on btn-accion */
.btn-edit {
    background: linear-gradient(135deg, var(--accent-color), var(--dark-primary));
    width: 36px; /* Make it square for circular shape */
    height: 36px; /* Make it square for circular shape */
    border-radius: 50%; /* Make it circular */
    border: none; /* Remove border */
    color: var(--text-primary); /* Icon color */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-edit:hover {
    background: linear-gradient(135deg, var(--dark-primary), var(--accent-color-dark));
}

.btn-delete {
    background: linear-gradient(135deg, var(--error-color), #c0392b);
    width: 36px; /* Make it square for circular shape */
    height: 36px; /* Make it square for circular shape */
    border-radius: 50%; /* Make it circular */
    border: none; /* Remove border */
    color: var(--text-primary); /* Icon color */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

/* New styles for Facturar button */
.btn-facturar {
    background: linear-gradient(135deg, #f39c12, #e67e22);
}

.btn-facturar:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

/* New styles for Cobrar button */
.btn-cobrar {
    background: linear-gradient(135deg, #27ae60, #229954);
}

.btn-cobrar:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
}

/* Botón Ver/Ver detalles */
.btn-detail {
    background: linear-gradient(135deg, var(--info-color), var(--dark-primary));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-detail:hover {
    background: linear-gradient(135deg, var(--dark-primary), var(--info-color));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* New btn-info style for permissions button */
.btn-info {
    background: linear-gradient(135deg, var(--info-color), #2980b9); /* Using --info-color and a slightly darker shade */
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.btn-info:hover {
    background: linear-gradient(135deg, #2980b9, var(--info-color));
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

/* Botón Agregar/Nuevo */
.btn-agregar {
    background: var(--success-color);
    color: white;
}

.btn-agregar:hover {
    background: #229954;
    color: white;
}

/* Contenedor de botones de acción */
.btn-accion-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-accion {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .btn-accion i {
        font-size: 14px;
    }
    
    .btn-accion-container {
        gap: 8px;
    }
}

/* Para botones en tablas */
.table .btn-accion {
    margin: 0 2px;
}

/* Para botones en cards */
.card .btn-accion-container {
    padding: 0 20px;
}

/* Para botones en listas */
.list-item .btn-accion-container {
    padding: 0 15px;
} 

/* New btn-action base class */
/* Removed as it's now covered by .btn-accion and specific btn classes */

/* Button for going back */
.btn-back {
    background: linear-gradient(135deg, var(--secondary-color), var(--hover-secondary));
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.btn-back:hover {
    background: linear-gradient(135deg, var(--hover-secondary), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-medium);
}

/* Button for adding new items */
.btn-add {
    background: linear-gradient(135deg, var(--success-color), #229954);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-add:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
} 

/* Specific button styles for Productos/Index.cshtml */
.btn-config {
    background: linear-gradient(135deg, var(--info-color), #1976D2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.btn-config:hover {
    background: linear-gradient(135deg, #1976D2, #1565C0);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
}

.btn-help {
    background: linear-gradient(135deg, var(--warning-color), #F57C00);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.btn-help:hover {
    background: linear-gradient(135deg, #F57C00, #EF6C00);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

.btn-new {
    background: linear-gradient(135deg, var(--success-color), #229954);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-new:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-platform {
    background: linear-gradient(135deg, #6c5ce7, #5f3dc4);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.btn-platform:hover {
    background: linear-gradient(135deg, #5f3dc4, #4c3aa3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

.btn-platform img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.btn-add-category {
    background: linear-gradient(135deg, var(--success-color), #229954);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.btn-add-category:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.4);
}

.btn-edit-category {
    background: linear-gradient(135deg, var(--warning-color), #e67e22);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.btn-edit-category:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
} 

/* Button for saving changes */
.btn-save {
    background: linear-gradient(135deg, var(--success-color), #229954);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-save:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
} 

/* Button for deleting data (similar to btn-save but red) */
.btn-cancel {
    background: linear-gradient(135deg, var(--error-color), var(--error-color-dark));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-cancel:hover {
    background: linear-gradient(135deg, var(--error-color-dark), var(--error-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
} 

/* Disabled state for buttons */
.btn-save:disabled,
.btn-cancel:disabled {
    background: #cccccc !important;
    color: #666666 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* Button for going back (override for ClienteAdmin.cshtml) */
.btn-back.admin-client {
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-primary));
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.3);
}

.btn-back.admin-client:hover {
    background: linear-gradient(135deg, var(--dark-primary), var(--secondary-color));
    box-shadow: 0 6px 20px rgba(52, 73, 94, 0.4);
} 

/* Button for search */
.btn-search {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-dark));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    height: 48px; /* Added height for consistency */
}

.btn-search:hover {
    background: linear-gradient(135deg, var(--accent-color-dark), var(--accent-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Button for clear filters */
.btn-clear {
    background: linear-gradient(135deg, var(--secondary-color), var(--hover-secondary));
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(52, 73, 94, 0.3);
}

.btn-clear:hover {
    background: linear-gradient(135deg, var(--hover-secondary), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 73, 94, 0.4);
} 

.btn-remove-item {
    background: linear-gradient(135deg, var(--error-color), var(--error-color-dark));
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    font-size: 14px;
}

.btn-remove-item:hover {
    background: linear-gradient(135deg, var(--error-color-dark), var(--error-color));
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* Back button general style - moved from .cshtml */
.back-button .btn {
    background-color: var(--secondary-color);
    color: var(--text-primary);
    border-radius: 4px;
    text-transform: none;
    font-weight: 500;
    box-shadow: 0 2px 5px var(--shadow-light);
    transition: all 0.3s ease;
}

.back-button .btn:hover {
    background-color: var(--hover-primary);
    box-shadow: 0 4px 8px var(--shadow-medium);
    transform: translateY(-1px);
} 

