.action-btn {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.action-btn.primary {
    background: #4f46e5;
    color: white;
}

.action-btn.primary:hover {
    background: #4338ca;
}

.action-btn.secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.action-btn.secondary:hover {
    background: #e5e7eb;
}

/* Manage Button Styling - matches the provided images */
.manage-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white !important;
    color: #6b7280 !important;
    border: 1px solid #d1d5db !important;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.2s ease;
}

.manage-btn:hover {
    background: #e3f2fd !important;
    color: #1976d2 !important;
    border-color: #1976d2 !important;
}

.manage-btn .btn-icon {
    width: 14px;
    height: 14px;
    stroke-width: 1.5;
}

/* Modal Buttons */
.modal-btn {
    padding: 0.6rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn.primary {
    background: #4f46e5;
    color: white;
}

.modal-btn.primary:hover {
    background: #4338ca;
}

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

.modal-btn.secondary:hover {
    background: #d97706;
}

.modal-btn:not(.primary):not(.secondary) {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.modal-btn:not(.primary):not(.secondary):hover {
    background: #e5e7eb;
}

/* Modal Close Button */
.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.25rem;
    border-radius: 4px;
}

.modal-close:hover {
    background: #e2e8f0;
    color: #374151;
}

/* Logout Button */
.logout-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
    font-weight: 500;
}

.logout-btn:hover {
    background: #fef2f2;
}

.logout-btn svg {
    width: 16px;
    height: 16px;
    color: #dc2626;
}

/* Extra item in the user dropdown, sitting below Logout. Same shape as
   .logout-btn but neutral rather than red - it is navigation, not a
   destructive action. Divided off so it does not read as part of Logout. */
.menu-link {
    width: 100%;
    padding: 0.75rem 1rem;
    background: none;
    border: none;
    border-top: 1px solid #e5e7eb;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #4338ca;
    font-weight: 500;
    text-decoration: none;
    box-sizing: border-box;
}

.menu-link:hover {
    background: #eef2ff;
}

.menu-link svg {
    width: 16px;
    height: 16px;
    color: #4338ca;
}

/* Export Link Button */
.export-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
}

.export-link:not(.disabled) {
    background: #f3f4f6;
    color: #374151;
    border-color: #d1d5db;
}

.export-link.disabled {
    background: #f3f4f6;
    color: #9ca3af;
    border-color: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.export-link.disabled:hover {
    background: #f3f4f6;
    color: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* Export Button Animation Styles */
.export-link.exporting {
    background: #e5e7eb !important;
    color: #6b7280 !important;
    border-color: #9ca3af !important;
    cursor: not-allowed !important;
    pointer-events: none;
}