.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    border: 1px solid transparent;
    font-size: 0.875rem;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    transition: background-color 0.12s ease, border-color 0.12s ease,
        color 0.12s ease, box-shadow 0.12s ease;
}

/* Primary */

.button--primary {
    background-color: #4f46e5; /* indigo-600 */
    color: #ffffff;
    border-color: #4f46e5;
}

.button--primary:hover {
    background-color: #4338ca; /* indigo-700 */
    border-color: #4338ca;
}

/* Ghost (topbar'daki çıkış butonu gibi) */

.button--ghost {
    background-color: transparent;
    color: #e5e7eb; /* slate-200 */
    border-color: #e5e7eb33;
}

.button--ghost:hover {
    background-color: #111827; /* slate-900 */
    border-color: #e5e7eb;
}

/* Button Utilities */

.button--xs {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    height: auto;
}

.button__icon {
    margin-right: 0.4rem;
    display: inline-block;
    vertical-align: middle;
}

/* Text / Link Button */
.button--link {
    background: none;
    border: none;
    padding: 0;
    color: #4f46e5;
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
}

.button--link:hover {
    text-decoration: underline;
    background: none;
    border: none;
    box-shadow: none;
}

/* Contextual Text Colors */
.text-danger { color: #dc2626 !important; } /* red-600 */
.text-primary { color: #4f46e5 !important; }
.text-muted { color: #64748b !important; }

/* Subtle/Ghost button for light backgrounds (Card actions) */
.button--subtle {
    background-color: transparent;
    color: #64748b; /* slate-500 */
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    transition: all 0.12s ease;
}

.button--subtle:hover {
    background-color: #f1f5f9; /* slate-100 */
    color: #0f172a; /* slate-900 */
}