/* Shared actions container used by multiple components */
.actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* Base button styles */
button {
    padding: 0.5rem 0.85rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    background: transparent;
    color: var(--text-color);
}

/* Primary/secondary variants */
button.primary {
    background: linear-gradient(180deg, #2f6fe4, #1e54c8);
    color: white;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

button.primary:disabled,
button.secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

button.secondary {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Small button variants used by Administration.controls */
.controls button.small {
    width: 36px;
    height: 30px;
    padding: 0;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.06);
    background: var(--page-background, #f5f5f5);
    color: var(--text-color);
    cursor: pointer;
}

.controls button.small:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Danger variant */
.controls button.danger {
    background-color: orangered;
    border: none;
    color: white;
    border-radius: 4px;
    padding: 0.15rem 0.35rem;
    cursor: pointer;
}

.controls button.danger:hover {
    background-color: #ff4500;
}

/* ===== Styling for native file input "button" used by Blazor InputFile =====
   Modern browsers support ::file-selector-button; WebKit needs ::-webkit-file-upload-button.
   This makes the file button visually match your primary button style while keeping the
   rest of the input text transparent.
*/
input[type="file"] {
    color: var(--text-color);
    background: transparent;
    border: none;
    padding: 0; /* keep the native input layout clean */
}

/* File selector button (modern browsers) */
input[type="file"]::file-selector-button {
    padding: 0.45rem 0.75rem;
    margin-right: 0.5rem;
    border-radius: 0.4rem;
    border: 1px solid rgba(0,0,0,0.08);
    background: linear-gradient(180deg, #2f6fe4, #1e54c8);
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font: revert;
}

/* Disabled state for file button */
input[type="file"]::file-selector-button:disabled,
input[type="file"]::-webkit-file-upload-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}