/**
 * Unified Button Styles - EDCPRO V2
 * Standardized button styles across all pages
 */

/* ===== BASE BUTTON STYLES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== SIZE VARIANTS ===== */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 4px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
    border-radius: 8px;
}

/* ===== COLOR VARIANTS ===== */
.btn-primary {
    background: #7c3aed;
    color: white;
}

.btn-primary:hover {
    background: #6d28d9;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #dc2626;
    color: white;
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-info:hover {
    background: #2563eb;
}

.btn-light {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.btn-light:hover {
    background: #e5e7eb;
}

/* ===== ICON-ONLY BUTTONS ===== */
.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
}

.btn-icon:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.btn-icon:active {
    transform: translateY(0);
}

/* Icon button color variants */
.btn-icon-primary {
    color: #7c3aed;
    border-color: #c4b5fd;
}

.btn-icon-primary:hover {
    background: rgba(124, 58, 237, 0.1);
    border-color: #7c3aed;
}

.btn-icon-danger {
    color: #dc2626;
    border-color: #fecaca;
}

.btn-icon-danger:hover {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
}

.btn-icon-success {
    color: #10b981;
    border-color: #a7f3d0;
}

.btn-icon-success:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
}

.btn-icon-warning {
    color: #f59e0b;
    border-color: #fde68a;
}

.btn-icon-warning:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: #f59e0b;
}

.btn-icon-info {
    color: #3b82f6;
    border-color: #bfdbfe;
}

.btn-icon-info:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
}

/* ===== ACTION BUTTON GROUPS ===== */
.action-buttons {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
}

.action-buttons .btn-icon {
    margin: 0;
}

/* ===== BUTTON GROUPS ===== */
.btn-group {
    display: inline-flex;
    gap: 0.5rem;
}

.btn-group .btn {
    margin: 0;
}

/* ===== SPECIAL VARIANTS ===== */
.btn-outline {
    background: transparent;
    border: 2px solid currentColor;
}

.btn-outline.btn-primary {
    color: #7c3aed;
    background: transparent;
}

.btn-outline.btn-primary:hover {
    background: #7c3aed;
    color: white;
}

.btn-outline.btn-danger {
    color: #dc2626;
    background: transparent;
}

.btn-outline.btn-danger:hover {
    background: #dc2626;
    color: white;
}

/* ===== BLOCK BUTTON ===== */
.btn-block {
    width: 100%;
    display: flex;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }

    .btn-icon {
        width: 32px;
        height: 32px;
    }
}

/* ===== UTILITY CLASSES ===== */
.btn-no-shadow:hover {
    box-shadow: none;
    transform: none;
}

.btn-rounded {
    border-radius: 50px;
}

.btn-square {
    border-radius: 0;
}
