/* Global button styles — Bootstrap'ı ezer; tüm sayfalarda son yüklenmeli */

.btn {
    padding: 12px 24px;
    border: none !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    line-height: 1.25;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn.btn-primary,
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
}

.btn.btn-primary:hover,
.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
    color: #fff !important;
}

.btn.btn-secondary,
.btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #5a6268;
    background: #5a6268 !important;
    background-color: #5a6268 !important;
    color: #fff !important;
}

.btn.btn-secondary:hover,
.btn-secondary:hover {
    background: #4e555b !important;
    background-color: #4e555b !important;
    color: #fff !important;
}

.btn.btn-success,
.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: #28a745;
    background: #28a745 !important;
    color: #fff !important;
}

.btn.btn-success:hover,
.btn-success:hover {
    background: #218838 !important;
    color: #fff !important;
}

.btn.btn-danger,
.btn-danger {
    --bs-btn-color: #fff;
    --bs-btn-bg: #dc3545;
    background: #dc3545 !important;
    color: #fff !important;
}

.btn.btn-danger:hover,
.btn-danger:hover {
    background: #c82333 !important;
    color: #fff !important;
}

.btn.btn-warning,
.btn-warning {
    --bs-btn-color: #212529;
    --bs-btn-bg: #ffc107;
    background: #ffc107 !important;
    color: #212529 !important;
}

.btn.btn-warning:hover,
.btn-warning:hover {
    background: #e0a800 !important;
    color: #212529 !important;
}

.btn.btn-info,
.btn-info {
    --bs-btn-color: #fff;
    --bs-btn-bg: #17a2b8;
    background: #17a2b8 !important;
    color: #fff !important;
}

.btn.btn-info:hover,
.btn-info:hover {
    background: #138496 !important;
    color: #fff !important;
}

.btn.btn-view,
.btn-view {
    background: #17a2b8 !important;
    color: #fff !important;
}

.btn.btn-view:hover,
.btn-view:hover {
    background: #138496 !important;
    color: #fff !important;
}

.btn.btn-edit,
.btn-edit {
    background: #667eea !important;
    color: #fff !important;
}

.btn.btn-edit:hover,
.btn-edit:hover {
    background: #5568d3 !important;
    color: #fff !important;
}

.btn.btn-delete,
.btn-delete {
    background: #dc3545 !important;
    color: #fff !important;
}

.btn.btn-delete:hover,
.btn-delete:hover {
    background: #c82333 !important;
    color: #fff !important;
}

.btn.btn-pdf,
.btn-pdf {
    background: #495057 !important;
    color: #fff !important;
}

.btn.btn-pdf:hover,
.btn-pdf:hover {
    background: #343a40 !important;
    color: #fff !important;
}

.btn.btn-iade,
.btn-iade {
    background: #e67e22 !important;
    color: #fff !important;
}

.btn.btn-iade:hover,
.btn-iade:hover {
    background: #d35400 !important;
    color: #fff !important;
}

.btn.btn-sm,
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

.btn-block {
    width: 100%;
}

/* Sidebar çıkış — koyu zemin */
.sidebar .btn.btn-secondary,
.sidebar-footer .btn.btn-secondary,
.sidebar .btn-secondary,
.sidebar-footer .btn-secondary {
    --bs-btn-color: #fff;
    --bs-btn-bg: transparent;
    background: rgba(255, 255, 255, 0.15) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.sidebar .btn.btn-secondary:hover,
.sidebar-footer .btn.btn-secondary:hover,
.sidebar .btn-secondary:hover,
.sidebar-footer .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.28) !important;
    background-color: rgba(255, 255, 255, 0.28) !important;
    color: #fff !important;
}
