.user-panel .card {
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
}

.user-panel .card h2 {
    margin-top: 0;
}

.user-panel form label {
    font-size: 0.85rem;
}

.user-entry-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: end;
}

.user-panel input[type="text"],
.user-panel input[type="password"],
.user-panel select {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border-radius: 6px;
    border: 1px solid #ccd0d7;
}

.user-panel button {
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: none;
    background: #0d6efd;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.user-panel button:hover {
    background: #0b5ed7;
}

.user-panel .action-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
}

.user-panel .user-add-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.user-panel table {
    width: 100%;
    border-collapse: collapse;
}

.user-panel table th,
.user-panel table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e6ea;
    text-align: left;
    vertical-align: top;
}

.user-panel .inline-form,
.user-panel .inline-delete-form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.user-panel .actions {
    margin-top: 0.25rem;
}

.user-panel .danger {
    background: #dc3545;
}

.user-panel .inline-delete-form button {
    margin-top: 0.35rem;
}

.user-panel .user-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.user-panel .user-icon-button {
    border: none;
    background: transparent;
    padding: 0.25rem;
    cursor: pointer;
    color: #0d6efd;
}

.user-panel .user-icon-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.user-modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 50;
}

.user-modal.active {
    display: flex;
}

.user-modal-content {
    background: #fff;
    border-radius: 10px;
    width: min(520px, 95vw);
    max-height: 90vh;
    overflow: auto;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
}

.user-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.user-modal-close {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.user-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1rem;
}

.user-modal-footer button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

.user-btn-secondary {
    background: #e2e6ea;
}

.user-btn-primary {
    background: #0d6efd;
    color: #fff;
}
